在宝塔npm安装依赖报错

1.错误信息

4327 error code E404
4328 error 404 Not Found - GET https://registry.npm.taobao.org/@xtuc/long/-/long-4.2.1.tgz - [not_found] document not found

image

2.解决方法

先查看是否设置代理

npm config get proxy
npm config get https-proxy

如果返回的不是null,就先清除代理

npm config set https-proxy null
npm config set proxy null

重新设置代理

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

posted @ 2024-04-28 14:11  山野见  阅读(188)  评论(0)    收藏  举报