npm
npm 获得当前源
npm config get registry
npm 设置当前源
npm config set registry <registry-url>
npm 切换回官方源
- 删除当前配置的源
npm config delete registry
- 直接重新设置源
nrm ls
npm config set registry <registry-url>
Install the specified version of npm
npm install -g @npm <npm-version-number>