sindresorhus/update-notifier

Bad advice when using npx

Open

#112 创建于 2017年6月12日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)JavaScript (164 fork)user submission
enhancementhelp wanted

仓库指标

Star
 (1,800 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

贡献者指南