简体   繁体   中英

AWS Codeartifact npm private repository fail to download dependencies

I have this situation:

  • I created a npm package and deployed it into AWS CodeArtifact. This artifact depends of aws-sdk package.
  • When I tried to use the new packege from other project, fallowing carefully what AWS docs says in Publishing private npm packages with AWS CodeArtifact , I got the error trace:
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.

Do you know what I do have to change to solve this issue?

Finally I could solve this issue. The solution is simple. I had to edit MyRepo and associate an Upstream repository to npm-store .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM