Skip to content

Instantly share code, notes, and snippets.

@moorooboorai-jeroen
Created January 1, 2016 13:48
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 moorooboorai-jeroen/0e7b47bf2d719ac8c3b1 to your computer and use it in GitHub Desktop.
Save moorooboorai-jeroen/0e7b47bf2d719ac8c3b1 to your computer and use it in GitHub Desktop.
Proper setup for Node and NPM on OS X
Uninstalling Node + NPM is bitchy at best, steps listed here worked (removed it from El Capitan 10.11.2):
https://gist.github.com/TonyMtz/d75101d9bdf764c890ef
Now for the installation, these steps (still) worked fine for me (installed on El Capitan 10.11.2):
http://www.johnpapa.net/how-to-use-npm-global-without-sudo-on-osx/
When brew errors out with something like 'The brew link step did not complete' then you may have permissions troubles.
Below this error message will be listed the offending file/directory.
Make sure you have permissions. This will probably require some form of chown-jitsu?
```sh
$ sudo chown -R `whoami` /usr/local/...offending path here...
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment