Skip to content

🧩 快速切换包管理工具的镜像源。(Quickly switch the registry of the package management tool.)

Notifications You must be signed in to change notification settings

wangrongding/prm-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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