mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
vim ~/.profile # add this line:
export PATH=~/.npm-global/bin:$PATH
source ~/.profile
Created
June 23, 2018 19:37
-
-
Save checktravis/412a9deb1191fc88870ee41dfdee7565 to your computer and use it in GitHub Desktop.
fix npm permissions, solve for error "npm WARN checkPermissions Missing write access to /usr/lib/..."
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment