何時(shí)使用nrm
需要在不同項(xiàng)目中使用不同的npm鏡像源時(shí),可以使用nrm管理
安裝nrm
npm install -g nrm
查看可選的鏡像源
nrm ls

image.png
使用鏡像源
nrm use taobao // 淘寶鏡像為例
增加鏡像源
nrm add [鏡像名] 鏡像地址
刪除鏡像源
nrm del [鏡像名]
測(cè)試鏡像源地址的速度
nrm test [鏡像名]
需要在不同項(xiàng)目中使用不同的npm鏡像源時(shí),可以使用nrm管理
npm install -g nrm
nrm ls
nrm use taobao // 淘寶鏡像為例
nrm add [鏡像名] 鏡像地址
nrm del [鏡像名]
nrm test [鏡像名]