Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm WARN config global --global, --local are deprecated. Use --location=global instead.[BUG] <title> #5281

Closed
2 tasks done
rahulgaba1987 opened this issue Aug 9, 2022 · 1 comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release

Comments

@rahulgaba1987
Copy link

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

I am unable to install angular CLI after changes --location=global in node module.

Please look i this issue

Expected Behavior

NPM should be installed without any error and support Angular CLI to install

Steps To Reproduce

  1. In this environment...
  2. With this config...
  3. Run '...'
  4. See error...

Environment

  • npm: 8.11
  • Node.js: 16.16
  • OS Name: Window 10
  • System Model Name:
  • npm config:
; copy and paste output from `npm config ls` here
@rahulgaba1987 rahulgaba1987 added Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release labels Aug 9, 2022
@wraithgar
Copy link
Member

This is a duplicate of #4989 and #4980. There was a single version of node that shipped with an erroneously deprecated -g flag. Updating your npm version should clear this, or you can read the other issues for more suggestions.

We are working on backporting an update to node 16 to ship with a patched version of npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release
Projects
None yet
Development

No branches or pull requests

2 participants