sindresorhus/update-notifier

Bad advice when using npx

Open

#112 geöffnet am 12. Juni 2017

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (164 Forks)user submission
enhancementhelp wanted

Repository-Metriken

Stars
 (1.800 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

In this example, npx is using the locally-installed version of bower (node_modules/.bin/bower). update-notifier is correctly noticing that we're not using the latest version, but it suggests that npm i -g bower will fix that, which it will not, since it'll still use the locally-installed version, which is old.

pasted image at 2017_06_12 03_26 pm

=> $ npm -v
5.0.3
=> $ node -v
v6.9.5
=> $ npx -v
4.0.3

Contributor Guide