Skip to content

Instantly share code, notes, and snippets.

@legodude17
Last active December 15, 2016 21:23
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save legodude17/b16c1c1fcc3683ccea9d073fb44323a2 to your computer and use it in GitHub Desktop.
Save legodude17/b16c1c1fcc3683ccea9d073fb44323a2 to your computer and use it in GitHub Desktop.
My trouble shooting guide for npm

Troubleshooting Guide

My troubleshooting guide for npm. I use it to help people with their issues on the npm issue tracker.

Follow the arrows:

  1. 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 to npm@4, otherwise file an issue
  • Other -> Check docs, try it again, mess around, file an issue
  1. Is it an html doc or really weird text?
  1. 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
@reconbot
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment