npm error errno -4058 报错解办法

一、npm error errno -4058 报错解决办法

1.将npm 替换成 cnpm 即可

2.执行cnpm install

赶快试试吧,好了记得关注+收藏哦

二、其他疑难杂症解决办法

1.清理缓存

npm cache clean --force

2.更新npm版本

npm install npm -g

3.命令行临时使用指定镜像(淘宝)

npm --registry https://registry.npm.taobao.org install express

命令行永久更改使用指定镜像(淘宝)

npm config set registry https://registry.npm.taobao.org

猜你喜欢

转载自blog.csdn.net/myyw001/article/details/126975984