常见问题:
下载文件速度慢,走国外代理IP,提高下载速度:1.购买VPN 2.免费VPN 3.自搭代理服务器
node_moudles 这个文件目录路径太深,会产生,无法删除的时候(Windows)
- 下载nodejs 10.x ,安装
- nodejs配置
- 配置环境变量
1.nodejs环境变量
PATH="nodejs"
PATH="nodejs\node_global"
2.git环境变量
PATH="git\bin"
- 配置node_global
npm config set prefix "./node_global"
- 配置node_cache
npm config set cache "./node_cache"
- 配置镜像站
npm config set registry=http://registry.npm.taobao.org
- 安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
该npm config命令体现在这个文件中:C:\Users\Administrator\.npmrc