1.npm install 后面指定库地址
--registry=https://registry.npm.taobao.org
2.或者直接安装cnpm,然后用cnpm取代npm
npm instal -g cnpm --registry=https://registry.npm.taobao.org
3.直接换registry,不用安装其它,直接使用镜像
npm config set registry https://registry.npm.taobao.org