Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When trying npm ci --global true, the following is returned: npm ERR! npm ci does not work for global packages.
Expected Behavior
It would be nice if npm had a global package-lock.json that could be used to install global packages without dependency updates. Internally at MSFT we are doing a push to use private registries that cannot be pushed upstream automatically and it's been a large impediment that we can't lock global package installs to a specific version because our infrastructure will fail whenever a global package dependency update goes live and somebody has to go push upstream the new version.
Steps To Reproduce
Already said above.
Environment
- npm: 8.19.2
- OS Name: Windows 11
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When trying
npm ci --global true, the following is returned:npm ERR!npm cidoes not work for global packages.Expected Behavior
It would be nice if
npmhad a global package-lock.json that could be used to install global packages without dependency updates. Internally at MSFT we are doing a push to use private registries that cannot be pushed upstream automatically and it's been a large impediment that we can't lock global package installs to a specific version because our infrastructure will fail whenever a global package dependency update goes live and somebody has to go push upstream the new version.Steps To Reproduce
Already said above.
Environment