Intro
NPM(the National Association of Pastoral Musicians)
node -v
v10.16.0
config
- method1
npm config set registry https://registry.npm.taobao.org
npm config set cache e:\node\npm\cache
npm config set global d:\node\blobal
- method2
npm 用户配置放在文件"c:\Users<youname>.npmrc"中,可以直接打开该文件修改:
registry=https://registry.npm.taobao.org/
cache=e:\node\npm\cache
prefix=d:\node\global
将npm global 目录加入环境变量Path中
```cmd
setx path %path%;d:\node\global
```
End.