The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
npm errors blocked my workflow
Hi, I am working on an open source project Oppia, and these npm errors blocked my workflow.
More details see: https://github.com/oppia/oppia/issues/6914
What could be the cause of these errors? Thank you!
Down at the bottom of
start.sh there is a call to
If you call
npm list in a package in which you have not yet done an
npm install, the list command generates those errors. A simplistic work-around in the script might be to test for the presence of
node_modules folder before attempting to generate the package list?
Example instructions to show error:
# new folder $ npm init -y $ npm install commander $ npm list email@example.com /Users/john/Documents/Sandpits/npm.community/8213 └── firstname.lastname@example.org $ rm -rf node_modules $ npm list email@example.com /Users/john/Documents/Sandpits/npm.community/8213 └── UNMET DEPENDENCY firstname.lastname@example.org npm ERR! missing: email@example.com, required by firstname.lastname@example.org
Thank you for your quick response and it helped us solve the issue!