下载地址:
http://nodejs.cn/download/
C:\Users\Administrator>node -v
v12.16.3
C:\Users\Administrator>npm -v
6.14.4
C:\Users\Administrator>npm config ls -l
userconfig = “C:\\Users\\Administrator\\.npmrc
”
npm config set registry=http://192.168.1.10/nexus/repository/npm/
npm adduser
npm config set prefix "D:\nodejs\node_global"
npm config set cache "D:\nodejs\node_cache"
配置环境变量