宋子宪博客

npm使用国内淘宝镜像加快install速度的方法

npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install
cnpm run serve

第二种方法

#经过下面的配置,以后所有的 npm install 都会经过淘宝的镜像地址下载
npm config set registry https://registry.npm.taobao.org 

#查看npm配置信息
npm config list
npm install
npm run serve

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »