Open1

[未解決事件] .npmrcを設定してnpm ciするとE404が出る

こばちきこばちき

GitHub Private Registryでパッケージを公開するために、開発しているライブラリのルートフォルダにregistry=https://npm.pkg.github.com/ownerという行がある.npmrcファイルを作成してnpm ciをしたところ、E404エラーが発生する。GitHub のドキュメントだとhttps://npm.pkg.github.com/ownerになかったらデフォルトのレジストリを見に行くとなっていたはず。

.npmrcを削除すると読み込んでくれる。

node ➜ /workspaces/industry0.6/domain-driver (design-ship) $ npm ci
npm ERR! code E404
npm ERR! 404 Not Found - GET https://npm.pkg.github.com/owner/yn/-/yn-3.1.1.tgz
npm ERR! 404 
npm ERR! 404  'yn@https://npm.pkg.github.com/owner/yn/-/yn-3.1.1.tgz' is not in this 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.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/node/.npm/_logs/2021-12-10T03_24_43_967Z-debug.log
node ➜ /workspaces/industry0.6/domain-driver (design-ship) $