NPM国内下载慢以及报错的解决方案

一、切换源 1、安装淘宝镜像cnpm(如果之前安装过跳过) npm install -g cnpm --registry=https://registry.npm.taobao.org 2、安装nrm,切换源地址(下载依赖包的地址) npm install -g nrm 3、nrm添加源: nrm add npm http://registry.npmjs.org nrm add taobao h
相关文章
相关标签/搜索