0

我有这种情况:

  • 我创建了一个 npm 包并将其部署到 AWS CodeArtifact。这个工件取决于aws-sdk包。
  • 当我尝试使用来自其他项目的新包时,仔细阅读 AWS 文档在Publishing private npm packages with AWS CodeArtifact中所说的内容,我得到了错误跟踪:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://my-domain-###########.d.codeartifact.us-east-1.amazonaws.com/npm/MyRepo/aws-sdk - Package, 'aws-sdk', not found.
npm ERR! 404 
npm ERR! 404  'aws-sdk@^2.1048.0' 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.

你知道我需要改变什么来解决这个问题吗?

4

1 回答 1

0

最后我可以解决这个问题。解决方案很简单。我必须编辑MyRepo并将一个关联Upstream repositorynpm-store.

于 2022-01-24T10:32:31.097 回答