AWS Codeartifact npm 私有存储库无法下载依赖项

AWS Codeartifact npm private repository fail to download dependencies

我遇到这种情况:

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.

你知道我必须做些什么来解决这个问题吗?

终于解决了这个问题。解决方法很简单。我必须编辑 MyRepo 并将 Upstream repository 关联到 npm-store