npm config set @myscope:registry http://registry.corporation.com
npm adduser --registry=http://registry.corporation.com --scope=@myscope
npm install @myscope/mylib
If the name of your own package starts with @myscope and the scope "myscope" is associated with a different repository, npm publish will upload your package to that repository instead.