Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 761
real_yggdrasil Avatar asked Oct 31 '25 06:10

real_yggdrasil


1 Answers

you should set the registry using: npm config set registry

see npm registry

like image 125
erano Avatar answered Nov 01 '25 19:11

erano



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!