npm
allows to assign a scope to a registry at login like this:
npm login --scope=@my-company-name --registry=http://your-server-address:8080
Is it also possible to assign multiple scopes at a particular login?
Because docs say:
Scopes have a many-to-one relationship with registries: one registry can host multiple scopes, but a scope only ever points to one registry.
The solution is to login multiple times using different scopes:
npm login --scope=@scope1 --registry=http://your-server-address:8080
npm login --scope=@scope2 --registry=http://your-server-address:8080
After this you can use packages scoped with @scope1
and @scope2
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With