>> nvm install 22.13.1
Installation complete. If you want to use this version,
type: nvm use 22.13.1
operable program or batch file.
activation error: exit status 1: 'C:\Program' is not recognized as an internal or external command, operable program or batch file.
nvm
is installed in a path that includes a space (like C:\Program Files\...
), and it's not properly handling that space.nvm-windows
to a path without spacesUninstall the current NVM:
Go to Add or Remove Programs and uninstall nvm.
Download the latest
nvm-setup.zip
from https://github.com/coreybutler/nvm-windows/releases.During installation, change the installation path to something like:
Also set the Node.js install path to something like:
You can temporarily fix this by manually editing your
settings.txt
file:Go to:
Update these paths to use short path notation (like
C:\Progra~1
) or better: move them to a location without spaces.