Cannot find module 'shelljs' when running bootstrap script
See original GitHub issueSummary
I’m getting the following error when trying to build the extension locally (from develop branch)
npm run-script bootstrap
> @ bootstrap /Users/mzeuli/VSCProjects/salesforcedx-vscode
> lerna bootstrap --no-ci -- --no-package-lock && node scripts/reformat-with-prettier
lerna notice cli v3.22.1
lerna info Bootstrapping 19 packages
lerna info Installing external dependencies
lerna info Symlinking packages and binaries
lerna success Bootstrapped 19 packages
internal/modules/cjs/loader.js:968
throw err;
^
Error: Cannot find module 'shelljs'
Require stack:
- /Users/mzeuli/VSCProjects/salesforcedx-vscode/scripts/reformat-with-prettier.js
Steps To Reproduce:
- Clone https://github.com/forcedotcom/salesforcedx-vscode
- Be sure you are checkout on the develop branch
- Run the bootstrap script (or
npm install
)
VS Code Version: version 1.51
SFDX CLI Version: sfdx-cli/7.81.0-7b953c80d1 darwin-x64 node-v12.18.3
OS and version: MacOS Mojave 10.14.6
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Could not find module 'shelljs' - node.js - Stack Overflow
I found the solution that some reason the [-g] to install globally wasn't working. ... This error can persist even when we run...
Read more >Cannot find module 'shelljs' after installing shelljs with npm #109
I have installed shelljs with npm with no problems: npm install shelljs -g But when I try to import shelljs into my project...
Read more >M1 running development mode will return error and macbook ...
Describe the bug I am M1 user but after running yarn dev , an error occurred ... Error: Cannot find module 'shelljs' [1]...
Read more >[Solved]-angular-error: unhandled exception - appsloveworld
Coding example for the question angular-error: unhandled exception: cannot find module @angular-devkit/build-angular/package.json-node.js.
Read more >How to Write Shell Scripts in Node with Google's zx Library
But if you've tried writing a shell script to run under Node.js, ... Otherwise, if the program is missing, it will throw an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Glad that fixed the problem @maaaaarco , I’ve merged it to
develop
already. Thanks for reporting this and let us know if you need anything else.This issue has been linked to a new work item: W-8528030