npm config set @myorg:registry https://npm.pkg.github.com/

Category: Node.js & npm/yarn

npm config set @myorg:registry https://npm.pkg.github.com/

Set a registry for one npm scope

Routes every @myorg scoped package to the GitHub Packages registry while everything else keeps using the default registry. The scope key syntax, @scope:registry, is how npm selects registries per namespace. Useful for private packages published to GitHub.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.