Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

dhmmasson
Copy link

@dhmmasson dhmmasson commented Aug 11, 2022

The notification message reads Run npm install -g [email protected] to update! instead of Run npm install --location=global [email protected] to update!

I updated the command in the update-notifier to

const cmd = `npm install --location=global npm@${latest}`

References

Fixes #5299

The notification message reads `Run npm install -g [email protected] to update!` instead of `Run npm install --location=global [email protected] to update!`
@dhmmasson dhmmasson requested a review from a team as a code owner August 11, 2022 22:04
@ljharb
Copy link
Contributor

ljharb commented Aug 11, 2022

It's supposed to say "-g" - that config is not actually deprecated, it was just one version (update: two versions) of npm that mistakenly indicated that.

@dhmmasson
Copy link
Author

My bad then... I tested with 8.11 and 8.12 and both displayed the warn...
Closing then.

@dhmmasson
Copy link
Author

already fixed with #4982.
Sorry

@dhmmasson dhmmasson closed this Aug 11, 2022
@dhmmasson dhmmasson deleted the fix-deprecated-update-notification branch August 11, 2022 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Use of deprecated -g option in update notification
2 participants