NPM: change registry in package-lock.json

1.3k Views Asked by At

For security reason, I need a specific registry, but in the package-lock.json I still keep the https://registry.npmjs.org/

Is there any way to force it?

1

There are 1 best solutions below

0
On

Best way to do so, use a .npmrc and also use npm ci to avoid package-lock.json modification.