-
-
Notifications
You must be signed in to change notification settings - Fork 745
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
Running n with no argument wastes environment with node reinstallation #577
Comments
|
Thanks for the feedback.
Yes. The intention is you get consistent results when you perform an action that is capable of an install.
You can hit q (for Quit) to exit the menu without doing the install. "Enter" says install the version. In
|
I'll add the extra messaging soon. |
Thank you for your reply.
Oh, I got it. It was version selection menu, right? With this message, I can agree with this behavior. |
Added menu version selection prompt in v5.0.2 |
Thanks a lot. |
Problem
Short Version
Just running
n
(without any arguments), it tries to re-installnode
.I think this is not user expected behavior to waste environment.
Long Version
Just run
n
with no arguments, it shows current installednode
versions.In this case, user would not intend to refresh their environment but just see it.
It is
n
's new behavior since v5.0.0, isn't it? (cf. #574 (comment))However, only running no-argument
n
doesnpm
too, and may roll backnpm
version (If having been updated manually)node
re-installation if no root privilegeConfiguration Details
npm
has been updated manually.Just run
n
, and it shows current installednode
versions.(Enter)
Then, it tries to re-install current selected ver. of
node
andnpm
.However, having been running
n
withoutsudo
,(1) it raises errors for access privilege.
...
And after that,
(2) manually updated
npm
is rolled back to the default ver. for the ver. ofnode
.The text was updated successfully, but these errors were encountered: