問題タブ [npm-publish]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
node.js - .npmrc でスコープ指定されたレジストリに _auth を設定するには?
.npmrc
デフォルトのレジストリと、認証を使用した別の範囲のレジストリを使用できるように、ファイルを構成する方法を考えています。
プライベート リポジトリに Nexus を使用していますが、スコープ レジストリの認証を設定する方法がわかりません。デフォルト レジストリのみです。
たとえば、私の~/.npmrc
ファイルは次のとおりです。
npm publish
をスコープとするパッケージに対して行うとtest-scope
、認証エラーが発生します。
私の知る限り、セクションに_auth
のみ適用されregistry=...
ます。セクションの認証キーを指定する方法はあり@test-scope:registry=...
ますか?
ありがとう、