The daily use command line of nrm source manager

1 switch source

npm config set registry=https://registry.npm.taobao.org/

2 View the current package source

npm config get registry

3. Use the nrm tool source management tool (Note: When operating nrm in cmd, you must open cmd as an administrator to operate the nrm command line successfully)

The most commonly used commands in development   

nrm ls (short for nrm list)

nrm use

 通过 npm 包管理工具,将 nrm 安装为全局可用工具:npm i nrm -g
 查看所有可用镜像源: nrm ls   //显示当前使用源名称
 切换镜像源:nrm  use taobao   //taobao为源名称

 

Guess you like

Origin blog.csdn.net/weixin_45294459/article/details/127004715