-
Notifications
You must be signed in to change notification settings - Fork 60
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
node
should be a package dependency
#586
Comments
Hey @m-roll thanks for posting this! I'm curious if this has to do with using |
I think this is an |
For some context, this issue (npm/cli#2014 (comment)) seems to indicate that this is not a bug but I think that comment is outdated/incorrect. Thanks for linking that issue. @miketalley Perhaps that is the case, although I would think that Edit: I'm using |
Description and Context
When running
npm update -g @hubspot/cli@next
ornpm update -g @hubspot/cli@latest
, bothnpm
andhs
aren't discoverable via $PATH (seems binaries/symlinks get removed), if this is the only global package installed. This does not seem to happen when runningnpm update @hubspot/cli
.Steps to reproduce
npm update -g @hubspot/cli@latest
npm
will not be found by shell.I believe the issue is that
node
needs to be a dependency of the CLI. When updating, it usespackage.json
to update the tree, sees thatnode
isn't required, and then removes the cli. I think this only happens when all user packages do not havenode
as a dependency, it just so happens this is the only global user package I have.Expected behavior
npm
andhs
remain in pathScreenshots
Who to Notify
@anthmatic
The text was updated successfully, but these errors were encountered: