Skip to content

Instantly share code, notes, and snippets.

@edPratt
edPratt / mac-osx-node-npm.md
Last active Dec 19, 2019
Fixing npm On Mac OS X; When npm install -g does not work
View mac-osx-node-npm.md

Nuke Everything node/npm related

(If you have setup another prefix)
rm -rf .npm-global

sudo rm -rf /usr/local/lib/node_modules
sudo rm -rf ~/.npm
brew uninstall node --ignore-dependencies node
rm -rf /usr/local/lib/node_modules