700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > npm install安装依赖时报错:npm ERR cb() never called

npm install安装依赖时报错:npm ERR cb() never called

时间:2021-10-29 18:31:37

相关推荐

npm install安装依赖时报错:npm ERR cb() never called

我这遇到的报错是因为网络的原因

网络太差 无法执行国外的网络中的部分函数

解决问题:

1、cnpm

使用cnpm 安装依赖,如果没有cnpm 先执行命令下载

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

2、淘宝镜像

或者切换成淘宝镜像 继续安装依赖

npm config set registry https://registry.

//希望可以帮助到各位码友^.^

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。