Skip to content

Instantly share code, notes, and snippets.

@mattlgy
mattlgy / npm_fix.md
Last active December 16, 2015 03:49
Solutions to common Node.js and npm problems

Installing Node.js and npm

Node and npm should be installed via the package manager, its better this way. Follow this guide: Installing-Node.js-via-package-manager

If you already have node and npm installed, check that it is installed correctly:
apt-cache search ^nodejs$
If that does not return "nodejs - Node.js ..." you might want to consider deleting the current install and re-installing. Feel free to see me (Matt) for help installing on Ubuntu or other Linux distros.

npm install errors

Permission errors while npm installing

Keybase proof

I hereby claim:

  • I am mattlgy on github.
  • I am mattlgy (https://keybase.io/mattlgy) on keybase.
  • I have a public key whose fingerprint is DBC6 B404 1276 2FAC 46A3 C0A5 6CEE 8A2F 0424 A92A

To claim this, I am signing this object: