Last active
May 26, 2017 13:03
-
-
Save equinusocio/d0829cff2b329e7776de to your computer and use it in GitHub Desktop.
Fix npm and node_modules permissions (without sudo)
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
| touch ~/.npmrc | |
| echo "prefix = ~/.local" >> ~/.npmrc | |
| echo "export PATH=$HOME/.local/bin:$PATH" >> ~/.zshrc && echo $PATH | |
| source ~/.zshrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment