Skip to content

Instantly share code, notes, and snippets.

@int64ago
Last active January 14, 2016 11:52
Show Gist options
  • Save int64ago/653a157001c87a4cf7d2 to your computer and use it in GitHub Desktop.
Save int64ago/653a157001c87a4cf7d2 to your computer and use it in GitHub Desktop.
npm settings
#!/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