npm config set registry https://registry.npm.taobao.org
查看是否更改成功:
npm config get registry
以后安装时,依然用npm命令,但是实际是从淘宝国内服务器下载的