Skip to content

Instantly share code, notes, and snippets.

@jtryan
Created November 25, 2015 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtryan/e3c0c567295996277a43 to your computer and use it in GitHub Desktop.
Save jtryan/e3c0c567295996277a43 to your computer and use it in GitHub Desktop.
Clean up for NPM issues

This housecleaning worked for me:

mv /usr/local/lib/node_modules /tmp rm -rf /tmp/node_modules/npm curl https://www.npmjs.com/install.sh | sh npm cache clean npm install -g $(ls -1rt /tmp/node_modules/)

The command rm -rf /tmp/node_modules/[package] can be used to remove what might be causing problems or no longer needed.

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