我有这种情况:
- 我创建了一个 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.
你知道我需要改变什么来解决这个问题吗?