question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module 'shelljs' when running bootstrap script

See original GitHub issue

Summary

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:

  1. Clone https://github.com/forcedotcom/salesforcedx-vscode
  2. Be sure you are checkout on the develop branch
  3. 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:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lcamposcommented, Dec 2, 2020

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.

0reactions
git2gus[bot]commented, Dec 2, 2020

This issue has been linked to a new work item: W-8528030

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found