我有這種情況:
- 我創建了一個 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.
你知道我需要改變什么來解決這個問題嗎?
uj5u.com熱心網友回復:
最后我可以解決這個問題。解決方案很簡單。我必須編輯MyRepo并將一個關聯Upstream repository到npm-store.
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/420743.html
標籤:
上一篇:隨機運行一個節點腳本檔案
