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

[BUG] Use of deprecated -g option in update notification #5299

Closed
2 tasks done
dhmmasson opened this issue Aug 11, 2022 · 1 comment
Closed
2 tasks done

[BUG] Use of deprecated -g option in update notification #5299

dhmmasson opened this issue Aug 11, 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

@dhmmasson
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

The notification message is currently :
npm notice Run npm install -g npm@8.17.0 to update!

Expected Behavior

it should read
npm notice Run npm install --location=global npm@8.17.0 to update!
since using -g prompt the following message :
npm WARN config global --global, --localare deprecated. Use--location=global instead.

Steps To Reproduce

Install a previous version of npm

npm install -g npm@8.11.0
npm install -g  npm@8.17.0

a better behavior is the following

npm install --location=global npm@8.11.0
npm install --location=global  npm@8.17.0

Environment

  • npm: 8.17.0
  • Node.js:16.15.1
  • OS Name: Mac Os
  • System Model Name: Macbook Pro
  • npm config:
; "user" config from /Users/dimitri/.npmrc

python = "/usr/local/bin/python3.9" 

; node bin location = /Users/dimitri/.nvm/versions/node/v16.15.1/bin/node
; node version = v16.15.1
; npm local prefix = /Users/dimitri/Documents/workspace
; npm version = 8.17.0
; cwd = /Users/dimitri/Documents/workspace
; HOME = /Users/dimitri
; Run `npm config ls -l` to show all defaults.
@dhmmasson dhmmasson 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 11, 2022
@dhmmasson
Copy link
Author

Not a bug... related to #4982 I had not used the right keyword in my search

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

Successfully merging a pull request may close this issue.

1 participant