Created
March 31, 2018 10:29
-
-
Save NZX-DeSiGN/20e4aaa26bc0fd8c820bc32b1953033c to your computer and use it in GitHub Desktop.
FastComet relocate npm global package (resolve permission denied)
This file contains 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
- mkdir ~/.npm-global | |
- npm config set prefix '~/.npm-global' | |
- Add this line in ~/.profile : export PATH=~/.npm-global/bin:$PATH | |
- source ~/.profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment