[BUG] Use of deprecated -g option in update notification #5299
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
Is there an existing issue for this?
This issue exists in the latest npm version
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=globalinstead.
Steps To Reproduce
Install a previous version of npm
a better behavior is the following
Environment
The text was updated successfully, but these errors were encountered: