标签:develop set dep 模块 环境 efi http cnpm load
软件分享 Snipaste.exe 截图软件
[https://www.cnblogs.com/renxuw/p/13026846.html](软件分享)
安装node.js
设置缓存路径: npm config set cache "C:\Program Files\nodejs\node_cache"
设置全局模块存放路径: npm config set prefix "C:\Program Files\nodejs\node_global"
到阿里下载镜像:https://developer.aliyun.com/mirror/NPM?from=tnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
λ npm install -g cnpm --registry=https://registry.npm.taobao.org
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
C:\Program Files\nodejs\node_global\cnpm -> C:\Program Files\nodejs\node_global\node_modules\cnpm\bin\cnpm
+ cnpm@6.1.1
added 689 packages from 972 contributors in 268.722s
cnpm install vue -g
安装vue-cli时命令使用cnpm install -g vue-cli就可以
标签:develop set dep 模块 环境 efi http cnpm load
原文地址:https://www.cnblogs.com/jojo0212/p/14150952.html