Created
January 1, 2016 13:48
-
-
Save moorooboorai-jeroen/0e7b47bf2d719ac8c3b1 to your computer and use it in GitHub Desktop.
Proper setup for Node and NPM on OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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