jasongin / nvs

Node Version Switcher - A cross-platform tool for switching between versions and forks of Node.js
Other
2.72k stars 210 forks source link

bash: nvs: command not found (Windows + Chocolatey + MINGW64) #293

Closed andrey-helldar closed 6 months ago

andrey-helldar commented 10 months ago

There are no problems when installing using msi, everything works. Today I decided to reinstall nvs via Chocolatey to make it easier to update.

My steps:

  1. Opened the list of installed programs.
  2. Removed nvs using the uninstall utility.
  3. Opened PowerShell with administrator rights.
  4. Entered the command choco install nvs.
  5. Confirmed the installation and received a success message.
  6. Checked the path to the folder %LOCALAPPDATA%\nvs\ in the PATH variable.
  7. Restarted the console (and then restarted the computer).
  8. Entered the command nvs --version into the console.
  9. Received an error message:
Helldar@HellPC MINGW64 /d/domains
$ nvs --version
bash: nvs: command not found

I'm working in the MINGW64 terminal that comes with git.

image

I just checked the command in cmd - it works there. But I almost never use it.

image

andrey-helldar commented 10 months ago

And I just downloaded the msi file version 1.7.1 from the releases page - everything worked immediately.

image