real_yggdrasil
real_yggdrasil

Reputation: 1263

How to change package source for NPM

We are developing in a secured environment that has no connection to the internet. For nuget, we have our own package sources, directories on our secured network and we copy the packages we need into it (after screening).

For npm we want something similar. How do I configure where npm gets its packages?

Upvotes: 4

Views: 9289

Answers (1)

erano
erano

Reputation: 393

you should set the registry using: npm config set registry

see npm registry

Upvotes: 3

Related Questions