下载地址:https://nodejs.org/zh-cn/download/
创建路径 & 配置NODEJS
- global npm全局安装位置
- cache 缓存路径
npm config set cache "D:\Program Files\nodejs\cache"
npm config set prefix "D:\Program Files\nodejs\global"

环境变量


测试
node -v
npm -v
配置NPM
# 更换仓库源
npm config set registry http://registry.npm.taobao.org/
# 验证
npm config get registry
npm info underscore
文章评论