Created
December 9, 2019 01:15
-
-
Save kklecho/90f50d6daf06e1006fa1b68cb1748290 to your computer and use it in GitHub Desktop.
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
# npm perm issues when instaling packages globally, | |
# src: https://stackoverflow.com/questions/33725639/npm-install-g-less-does-not-work | |
mkdir ~/.npm-global | |
npm config set prefix '~/.npm-global' | |
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.profile | |
source ~/.profile | |
# try: | |
npm install -g @vue/cli | |
# if not working | |
sudo chown -R $USER ~/.npm-global |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment