Last active
January 14, 2016 11:52
-
-
Save int64ago/653a157001c87a4cf7d2 to your computer and use it in GitHub Desktop.
npm settings
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/bash | |
mkdir $HOME/.npm-global | |
npm config set prefix $HOME/.npm-global | |
echo 'PATH=$PATH:/home/int64ago/.npm-global/bin' >> ~/.bashrc | |
source ~/.bashrc | |
npm config set registry https://registry.npm.taobao.org | |
npm config set disturl https://npm.taobao.org/dist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment