nvm not recognized #1166
-
Installing nvm-windows with chocolatey. "choco install nvm".
If I close and open the powershell window, it's fixed. However this is part of a larger automation script I would prefer to be able to use the command ASAP. Could I manually refresh the necessary variables? Is it only PATH? I see there are NVM_HOME and NVM_SYMLINK and PATH. Here is an old conversation from the choco discussion forums.
Usually, I would run What commands could I run manually to refresh NVM_HOME, NVM_SYMLINK, PATH, and not be forced to open a new terminal window? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
We do not maintain the choco installer. I don't know what's going on with it, but if it wraps the setup.exe we provide, there is likely a race condition that isn't accounted for. The InnoSetup script attempts to refresh the environment, but Windows doesn't provide much in the way of alerting when the install process is complete. It's an annoyance I've never been able to address in the InnoSetup scripts. That said, this is just a guess a what may be going on. There's a detailed guide showing what the official installer does though, available a https://github.com/coreybutler/nvm-windows/wiki#manual-installation. I think it provides what you're looking for. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the info. Running |
Beta Was this translation helpful? Give feedback.
We do not maintain the choco installer. I don't know what's going on with it, but if it wraps the setup.exe we provide, there is likely a race condition that isn't accounted for. The InnoSetup script attempts to refresh the environment, but Windows doesn't provide much in the way of alerting when the install process is complete. It's an annoyance I've never been able to address in the InnoSetup scripts. That said, this is just a guess a what may be going on.
There's a detailed guide showing what the official installer does though, available a https://github.com/coreybutler/nvm-windows/wiki#manual-installation. I think it provides what you're looking for.