Skip to content

[FEATURE] npm ci --global true is not supported #5698

@nagilson

Description

@nagilson

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 8.xwork is associated with a specific npm 8 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions