I installed 1.1 after uninstalling nvm-windows and continuously get the following error
ERROR open \settings.txt: The system cannot find the file specified.
All is well if I install the previous version and then install 1.1 over it.
I ran into this issue as well. Fixed with SteveALee's resolution. Thanks!
+1
+1
+1
SeveALee's resolution method doesn't work for me
Unfortunately, I just ended up installing nodist
here. Neither nvmw
or nvm-windows
worked for me. It probably was just a configuration issue but in lieu of time I had to switch to nodist. It worked right out of the box.
I create settings.txt in the installation directory manual
https://github.com/coreybutler/nvm-windows/wiki#manual-installation
Here some steps that might help figuring out what's going:
nvm
, and just saw the same messagenvm
. This time, the help came out, no error message.nvm
and no error message showed up anymore, just help.HTH
Following @BrainCrumbz tips, running as admin works for me. However, when I open up a regular cmd, I get the following error when I run nvm:
module.js:340
throw err;
^
Error: Cannot find module './nvm-help'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
I just did a clean installation and also get the missing file error in the Command window launched by setup even though C:\Users
+1 I can also only run it as administrator.
Same experience as @BrainCrumbz
I can also confirm that @BrainCrumbz's work around works on Windows 8.1.
+1 I can also only run it as administrator.
:+1: can only run it as administrator, and, running it as administrator modifies how it runs as a normal user.
+1 exactly the same issue as @cpb
Workaround to get it working: https://github.com/coreybutler/nvm-windows/issues/146#issuecomment-180134543
Thanks @BrainCrumbz its works
I ran into this issue as well. Running Powershell has admin first and running the nvm command seemed to fix it for subsequently opened Powershell instances. After attempting nvm install latest
and then nvm use 6.2.2
though the expected node
and npm
commands do not appear available. Seems to me something was botched in the install.
Part of this issue was due to a problem in the sequence of when the installer completed creation of the settings.txt file (the CMD prompt opened before completion). Part of it was another sequencing issue with the registry.
A final part to all of this is botched downloads... as in a node download wasn't always completing. There's nothing I can do about the network, but I did switch the list of versions from nodedistro (a repo I maintained partially by hand before node got around to an official list). Now NVM4W is using the official node release list. It should be referencing the same download links you would if you were to download directly from nodejs.org.
This issue has frustrated far too many people (myself included) for far too long. I scrapped the option to automatically open a command prompt from the installer in NVM4W 1.1.1. In my tests, I can no longer create this error.
Most helpful comment
Here some steps that might help figuring out what's going:
nvm
, and just saw the same messagenvm
. This time, the help came out, no error message.nvm
and no error message showed up anymore, just help.HTH