Closed jiaohanying closed 5 months ago
Please correct me if I'm wrong, but the issue is just in the display, i.e. nvm ls
is not showing the asterisk next to the version if it is below 17. Functionally, everything is working though, correct?
No, it doesn't work. What should I do?
Please correct me if I'm wrong, but the issue is just in the display, i.e.
nvm ls
is not showing the asterisk next to the version if it is below 17. Functionally, everything is working though, correct?
Ah, your last screenshot explains the issue. You have a NODE_OPTIONS
environment variable set. Some values aren't supported in older versions of Node. --openssl-legacy-provider
was blocked starting in Node 15.3.0 due to security concerns. I think Node 17+ simply ignores this while 15.3.0-16.x.x throws an error (which is what you're seeing). Remove NODE_OPTIONS
or supply a value supported by the older versions to make it work.
I'm going to leave this issue open as a reminder to myself to check the NODE_OPTIONS
values in a future version of the nvm debug
command.
What happened?
When using use command, versions below nodejs 17 cannot be selected. I tested node versions 20, 18, 17, 16, 15, 14 and 10. The response from use command is that given version is now used, however, when checking for current the response is that no version is currently used.
Although nvm shows that node 16.20.2 is not selected, the nodejs link points correctly. My environment variable settings are correct and node 17.9.1 can be used normally.
What did you expect to happen?
Versions below nodejs 17 should be used.
Version
1.1.11 or newer (Default)
Which version of Windows?
Windows 11+
Which locale?
Other Non-English
Which shell are you running NVM4W in?
PowerShell
User Permissions?
Administrative Privileges, Elevated
Is Developer Mode enabled?
None
Relevant log/console output
Debug Output
Anything else?
No response