prm
can help you easy and fast switch between different npm registries,
now include: npm
, cnpm
, taobao
, nj(nodejitsu)
, rednpm
, yarn
, npmMirror
, edunpm
.
npm i prm-cli -g
# List all registries
prm ls
# Select a registry that you need to switch
prm use taobao
# Show response time for specific or all registries
prm test
# or
prm test [registry]
sudo npm link