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

locally-installed binaries suggest global install #113

Closed
zkat opened this issue Jun 12, 2017 · 1 comment
Closed

locally-installed binaries suggest global install #113

zkat opened this issue Jun 12, 2017 · 1 comment

Comments

@zkat
Copy link

zkat commented Jun 12, 2017

If you have a locally-installed binary (say, in devDependencies), and you invoke it directly, update-notifier will tell you it's out of date and suggest using -g to update the install, which isn't really right in this case.

My suggestion would be to have update-notifier look up whether it's inside a package (by navigating from pkg/node_modules/.bin and seeing if pkg/package.json exists), and if so, omit the -g from the install (possibly adding --save).

@zkat
Copy link
Author

zkat commented Jun 12, 2017

Oh oops, #112 was getting filed already. Closing this one 😁

@zkat zkat closed this as completed Jun 12, 2017
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

No branches or pull requests

1 participant