一、npm修改保存插件以及缓存地址
设置npm全局包下载路径
npm config set prefix "D:\Node\global"
设置npm缓存路径
npm config set cache "D:\Node\cache"
配置淘宝镜像
npm config set registry https://registry.npm.taobao.org
npm install -g cnpm --registry=https://registry.npm.taobao.org
查看配置文件主要信息
npm config list
查看配置文件全部信息
npm config ls -l