I’m was having trouble compiling my project in Particle Dev after changing to V2 folder structure so I figured I’d try compiling in command line to see more verbose data. My version of Particle-CLI didn’t seem to understand V2 format (missing libraries) so I updated it, and now I’m getting the following errors when simply running Particle from the command prompt.
D:\Work\Spark>particle
C:\Users\Jeremy Williams\AppData\Roaming\npm\node_modules\particle-cli\oldlib\ApiClient.js:557
_populateFileMapping(fileMapping) {
^
Error loading command C:\Users\Jeremy Williams\AppData\Roaming\npm\node_modules\particle-cli\commands\AccessTokenCommands.js SyntaxError: Unexpected token (
Error loading command C:\Users\Jeremy Williams\AppData\Roaming\npm\node_modules\particle-cli\commands\CloudCommands.js SyntaxError: Unexpected token (
Error loading command C:\Users\Jeremy Williams\AppData\Roaming\npm\node_modules\particle-cli\commands\FunctionCommand.js SyntaxError: Unexpected token (
Error loading command C:\Users\Jeremy Williams\AppData\Roaming\npm\node_modules\particle-cli\commands\KeyCommands.js SyntaxError: Unexpected token (
Error loading command C:\Users\Jeremy Williams\AppData\Roaming\npm\node_modules\particle-cli\commands\PublishCommand.js SyntaxError: Unexpected token (
Error loading command C:\Users\Jeremy Williams\AppData\Roaming\npm\node_modules\particle-cli\commands\SerialCommand.js SyntaxError: Unexpected token (
Error loading command C:\Users\Jeremy Williams\AppData\Roaming\npm\node_modules\particle-cli\commands\SetupCommand SyntaxError: Unexpected token (
Error loading command C:\Users\Jeremy Williams\AppData\Roaming\npm\node_modules\particle-cli\commands\SubscribeCommand.js SyntaxError: Unexpected token (
Error loading command C:\Users\Jeremy Williams\AppData\Roaming\npm\node_modules\particle-cli\commands\VariableCommand.js SyntaxError: Unexpected token (
Error loading command C:\Users\Jeremy Williams\AppData\Roaming\npm\node_modules\particle-cli\commands\WebhookCommands.js SyntaxError: Unexpected token (
Error loading command C:\Users\Jeremy Williams\AppData\Roaming\npm\node_modules\particle-cli\commands\WirelessCommand SyntaxError: Unexpected token (
Welcome to the Particle Command line utility!
Version 1.21.0
https://github.com/spark/particle-cli
Usage: particle <command_name> <arguments>
Common Commands:
setup, list, call, get, device, identify, flash, subscribe
compile, monitor, login, logout, help, library
Less Common Commands:
binary, config, udp, update
For more information Run: particle help <command_name>
D:\Work\Spark>
I deleted the folders from …/AppData\Roaming\npm\node_modules and reinstalled particle-CLI but I get the same errors. Any suggestions?