npm ERR! 404 Not Found -GE https://registry.npmis.org/uni-id-common - not found uni-app公共模块报错

npm ERR! 404 Not Found -GE https://registry.npmis.org/uni-id-common - not found uni-app公共模块报错

产品分类:uniCloud/App

操作步骤:

hbuilder控制台中:npm ERR! 404 Not Found -GE https://registry.npmis.org/uni-id-common - not found公共模块报错

预期结果:

hbuilder控制台中:npm ERR! 404 Not Found -GE https://registry.npmis.org/uni-id-common - not found公共模块报错

实际结果:

hbuilder控制台中:npm ERR! 404 Not Found -GE https://registry.npmis.org/uni-id-common - not found公共模块报错

bug描述:

uniapp+unicloud框架开发微信小程序,在启动项目时报错:

nPm ERR!code E404
npm ERR! 404 Not Found -GE https://registry.npmis.org/uni-id-common - not found
nPm ERR!404
npm ERR!404uni-id-common@latest'
is not in this registry
npm ERR! 404

Image


更多关于npm ERR! 404 Not Found -GE https://registry.npmis.org/uni-id-common - not found uni-app公共模块报错的实战教程也可以访问 https://www.itying.com/category-93-b0.html

2 回复

uni-id-common是本地公共模块,非npm依赖,查看文档https://doc.dcloud.net.cn/uniCloud/uni-id/cloud-common.html

更多关于npm ERR! 404 Not Found -GE https://registry.npmis.org/uni-id-common - not found uni-app公共模块报错的实战教程也可以访问 https://www.itying.com/category-93-b0.html


这个错误是因为npm镜像源配置错误导致的。正确的解决方案是:

  1. 检查你的npm镜像源配置,错误信息显示你当前使用的是https://registry.npmis.org/,这是一个不存在的镜像源

  2. 恢复默认npm镜像源,执行以下命令:

npm config set registry https://registry.npmjs.org/
  1. 或者使用淘宝镜像源:
npm config set registry https://registry.npmmirror.com/
  1. 然后重新安装依赖:
npm install
回到顶部