prm-cli
prm-cli copied to clipboard
🧩 快速切换包管理工具的镜像源。(Quickly switch the registry of the package management tool.)
PRM -- package manager's registry manager
prm can help you easy and fast switch between different npm registries,
now include: npm, cnpm, taobao, nj(nodejitsu), rednpm, yarn, npmMirror, edunpm.
本项目被刊登在阮一峰老师的科技爱好者周刊第 445 期。
Install
npm i prm-cli -g
Example
# 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]

Dev
sudo npm link