【问题标题】:Angular NPM - No matching version found for mime@1.6.0Angular NPM - 找不到 mime@1.6.0 的匹配版本
【发布时间】:2021-09-04 20:20:50
【问题描述】:

我的 .npmrc 文件如下所示:

registry=https://pkgs.dev.azure.com/<yourOrganization>/_packaging/<yourFeed>/npm/registry/

always-auth=true

我删除了 node_modules 并尝试安装软件包,但出现以下错误

npm ERR! code ETARGET
npm ERR! notarget No matching version found for mime@1.6.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'send'
npm ERR! notarget

我的 package.json 不包含任何名为 mime@1.6.0 的依赖项。

【问题讨论】:

  • 您是否尝试删除package-lock.json 文件并重新安装?
  • 检查 npm ls --all 以查看它。 send 取决于 mime,它(显然)没有存储在您的 pkgs.dev.azure.com 注册表中。看看docs.microsoft.com/en-us/azure/devops/artifacts/npm/…
  • @msbit 我点击了你分享的链接,我可以看到上游配置为 registry.npmjs.org 并且今天更新了。
  • @HoangTranSon 是的,试过了。但没有运气。

标签: angular npm npm-update


【解决方案1】:

发生这种情况是因为 mime@1.6.0 包在提要中被永久删除。因此,我们创建了一个不同的提要,该提要是 NPM 存储库的子提要,因此创建的提要具有 mime@1.6.0

【讨论】:

    猜你喜欢
    • 2017-11-03
    • 2021-08-04
    • 2019-01-22
    • 1970-01-01
    • 2018-06-27
    • 1970-01-01
    • 1970-01-01
    • 2022-01-02
    • 2021-11-06
    相关资源
    最近更新 更多