一般是因为需要下载国外的包,要么连VPN,要么使用淘宝的镜像:

 

使用cnpm:

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

然后用下面命令安装package.json:

cnpm install

相关文章: