0

我的 .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.

4

1 回答 1

0

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

于 2021-12-01T11:10:30.977 回答