Last active
April 16, 2019 12:46
-
-
Save supernovel/7730a045049a4840dc6c246c5a95ac36 to your computer and use it in GitHub Desktop.
npm 권한 오류 수정
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
#!/bin/sh | |
mkdir ~/.npm-global | |
npm config set prefix '~/.npm-global' | |
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.profile | |
source ~/.profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run
curl -sL https://gist.githubusercontent.com/supernovel/7730a045049a4840dc6c246c5a95ac36/raw/26e837cd69bbdcede9deac4fe53052d0ab7dd470/fix_npm_permissions.sh | bash -