You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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 frompkg/node_modules/.bin
and seeing ifpkg/package.json
exists), and if so, omit the-g
from the install (possibly adding--save
).The text was updated successfully, but these errors were encountered: