首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当运行npm安装时,我将返回npm错误!代码E404

当运行npm安装时,我将返回npm错误!代码E404
EN

Stack Overflow用户
提问于 2021-04-01 14:38:36
回答 1查看 2.2K关注 0票数 2

我试图运行npm安装,并得到错误404每次。node_modules文件将在试图安装时显示,然后在出现错误时被删除。

代码语言:javascript
复制
npm install
npm ERR! code E404
npm ERR! 404 Not Found - GET https://repositor.com/artifactory/api/npm/ui-mjd/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz
npm ERR! 404
npm ERR! 404  'whatwg-fetch@https://repository.com/artifactory/api/npm/ui-mjd/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

我尝试过的事情:

rebuild

  • updating
  • npm缓存清除
  • npm从github

下载过去的工作文件。

其他人可以从github获得相同的代码,并且运行良好,但是我无法通过npm运行它。有什么想法吗?

EN

回答 1

Stack Overflow用户

发布于 2021-04-01 19:13:43

我能够通过运行命令来解决这个问题

代码语言:javascript
复制
npm update --force
npm audit fix --force
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66906569

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档