npm cnpm node yarn

1、yarn: windows 下需要下载msi文件,

2、npm,node 安装绿色版本

3、cnpm安装:npm install -g cnpm --registry=https://registry.npm.taobao.org(解决了npm ERR! code: 'EPERM'问题)

4、使用国内镜像加速npm和yarn
  npm config set registry=https://registry.npm.taobao.org
  yarn config set registry https://registry.npm.taobao.org

猜你喜欢

转载自www.cnblogs.com/wenbolwm/p/11956324.html