1

I want to run npm insatll with registry but with scope for example @test:registry=url

I tried

npm install --registry @test url
npm install --registry@test url

but it didn't work

user1365697
  • 5,819
  • 15
  • 60
  • 96
  • Perhaps you need to [Associate the scope with the registry](https://docs.npmjs.com/misc/scope#associating-a-scope-with-a-registry) at login. The docs say _"Once a scope is associated with a registry, any `npm install` for a package with that scope will request packages from that registry instead"_ – RobC Mar 19 '18 at 14:28
  • Check this [answer](https://stackoverflow.com/questions/32633678/is-there-any-way-to-configure-multiple-registries-in-a-single-npmrc-file) – Ricardo Fornes Jul 01 '19 at 15:53

1 Answers1

3

It is working for me, you can run npm --registry http://url

or Verify that your registry is set correctly by npm config get registry

if not run

npm config set registry http://url

User4567
  • 1,005
  • 1
  • 12
  • 27