I just did a completely fresh install of Workbench from the market place. All the toolchains and extension folders were completely removed prior to install. Everything installed, restarted VS Code, then it prompted to install the dependencies, which completed without error, restarted VS code, then click “Particle: Login”…
Entered my details (correctly), and login failed with this error:
Error in particle-cli:
! Cannot find module 'chalk'
! See /Users/rus/.particle/error.log for more info.
Error: Command failed: /Users/rus/.vscode/extensions/particle.particle-vscode-core-1.4.8/src/cli/bin/darwin/amd64/particle login -u <redacted> -p <redacted> --otp <redacted> --no-update-check
! Error in particle-cli:
! Cannot find module 'chalk'
! See /Users/rus/.particle/error.log for more info.
at makeError (/Users/rus/.vscode/extensions/particle.particle-vscode-core-1.4.8/node_modules/execa/index.js:174:9)
at module.exports.Promise.all.then.arr (/Users/rus/.vscode/extensions/particle.particle-vscode-core-1.4.8/node_modules/execa/index.js:278:16)
- - - -
Since I’m a JS developer by trade, I went snooping and chalk
is missing from the deps for the core package, I tried manually installing it with npm and that didn’t work either.
I ran the Particle Audit Environment, and the only notable thing pretty much says the same as above
"cli": {
"binpath": "/Users/rus/.vscode/extensions/particle.particle-vscode-core-1.4.8/src/cli/bin/darwin/amd64/particle",
"ok": true,
"version": "Error in particle-cli:\n ! Cannot find module 'chalk'\n ! See /Users/rus/.particle/error.log for more info."
},