My troubleshooting guide for npm
. I use it to help people with their issues on the npm
issue tracker.
Follow the arrows:
- What is the error?
- shasum check failed -> File an issue with
npm/registry
- Error parsing json -> 2
- Missing script -> Make sure you have a
start
script in package.json - Cannot find module 'internal/fs' -> Make sure you have nothing with
graceful-fs@<=4
. - Cannot find module -> Reinstall
npm
- ETIMEDOUT, ECONNRESET -> It is probably a problem with your internet or proxy
- ENOENT -> 3
- Permission Denied -> Make sure you have access to the place you want to install to
- Assertion Error, Incorrect number of args -> Error in
npm
, file an issue - Out of memory -> If you ran
npm search ...
, upgrade tonpm@4
, otherwise file an issue - Other -> Check docs, try it again, mess around, file an issue
- Is it an html doc or really weird text?
- Html -> Probably a problem with your proxy
- Weird text -> File an issue with
npm/registry
- What file is missing?
- package.json -> You need to make a package.json (
npm init
) - Some strang path with
.stagin
and a hash -> File an issue
👍