【问题标题】:npm ERR! 404 Not Found - GET http://registry.npmjs.org/amcharts4 - Not foundnpm 错误! 404 未找到 - 获取 http://registry.npmjs.org/amcharts4 - 未找到
【发布时间】:2021-10-07 23:37:02
【问题描述】:

我正在尝试将 npm 包依赖项安装到我的 Angular 应用程序中,但出现此错误。有什么帮助解决这个问题吗?

C:\Users\TM161\Desktop\Master\stage PFE\SNRT-Music>npm i
    npm ERR! code E404
    npm ERR! 404 Not Found - GET http://registry.npmjs.org/amcharts4 - Not found
    npm ERR! 404
    npm ERR! 404  'amcharts4@latest' 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.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\TM161\AppData\Local\npm-cache\_logs\2021-08-02T15_41_58_935Z-debug.log

【问题讨论】:

  • 在您的 package.json 中有一个公共 npm 注册表不知道的包名称。我能找到的最接近“amcharts4”的包是npmjs.com/package/@amcharts/amcharts4。它符合您的需求吗?
  • 当我尝试安装 amcharts 时,它仍然是同样的问题。

标签: node.js angular npm node-modules


【解决方案1】:

npm 在注册表中找不到 amcharts4 包。您的软件包版本可能较旧。所以试试

npm i @amcharts/amcharts4

然后npm i

【讨论】:

  • 我已经试过了,但还是一样的问题!!
猜你喜欢
  • 2020-08-29
  • 2021-06-12
  • 2020-05-28
  • 2021-09-06
  • 1970-01-01
  • 1970-01-01
  • 2021-12-23
  • 1970-01-01
相关资源
最近更新 更多