-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR open \settings.txt: #22
Comments
Does the settings file exist in your installation directory? |
Does the installation directory mean the folder where the installed application is or where the installer is? |
Where the installed application goes... the default for this is The main files to look for are If The settings file should contain content similar to:
|
Hi, this happened to me, too. After the installer finished it opened cmd.exe, and cmd.exe opened with that error message. settings.txt does in fact exist in my installation folder. When I examine my new path variable, it has this at the end: " [...my previous paths...];%NVM_HOME%;%NVM_SYMLINK% " So it seems like, possibly those %variables% are not getting evaluated into actual dirs before appending them to the search path during the installer? When I manually add the right dirs to my path, it appears to work, although I'm new to node.js so I have very little idea what I'm talking about yet. |
@bobbycircle - It is possible the variables aren't being evaluated at the right time... I'll have to look into that. I didn't think about that before because... well it has been working and I haven't changed that part of the installer. I'll look into this as soon as I can. |
Same thing here. As per @bobbycircle, manually tweaking my PATH variable sorted it out. |
I encountered the same error after installation. On Windows 8+, you need to create a new cmd window to see the evaluated %nvm_home% and %nvm_symlink% environment variables. This is a change from Win 7 to 8 where an existing windows explorer shell can not create a new process and see the new environment variables. If you are starting cmd.exe from Explorer, you need to first close Win Explorer and restart it to see new Env variables. |
@dan-sterling - I have not encountered this with Windows 8 (which is what I developed this on). This is specifically why the user attributes are set as well, then the cmd shell will pickup on the path. It shouldn't matter though - I'm building an entirely new installer to resolve these issues. |
Got the same problem. What's more, creating settings.txt in that directory didn't fix it. I needed to create it at |
I had the same Issue. #23 @colmsjo's comment resolved it for me. Simply remove |
Same issue here. I followed @queckezz's solution, it works. |
I have also this issue everytime I install it, I think that launching cmd.exe at the end of installation is not a good idea as it may fail too often giving a bad first impression of the tool. I would rather not launch cmd.exe and ask the user to close his Windows session, open a new one and then try nvm in a command prompt window. |
Also, ran into this problem, when running the 1.0.6 installer. Windows 8, Ran the installer as Admin. file.exe was not in my path. Install of GnuWin32 also did not solve the problem. Node had not been installed yet. |
I could use to copy settings.txt to c:\ . |
@bobbycircle solution worked for me. |
I encountered this issue also (windows 8.1). Closing and restarting the command prompt didn't help (process may still have been running - didn't check). On a hunch, I restarted windows. Problem resolved: no mucking around with the installer PATH vars. Give it a shot before changing anything |
Sometimes, when tweaking environnement variables, this can happen 👍
|
Just ran into this on Windows 8 as well. |
run your cmd terminal as adminstrator |
Is it possible that this failed because the install failed .. because of a space in the |
@queckezz solution worked |
@queckezz solution worked. thank u |
I had this issue. The installer ran with elevated privileges (required for installation). Relaunching a non-admin cmd saw settings.txt just fine, and nvm now also runs fine in a admin session launched as an admin. |
@queckezz solution also worked for me. Thanks |
@queckezz solution worked +1 |
I had the same problem. The issue was that "C:\Program Files\nodejs" was in my user path, right before the new vars ;%NVM_HOME%;%NVM_SYMLINK%. |
In my case (Windows 7 and Windows 8.1), this phenomenon occurs just after the installation. |
@mcpDESIGNS thank you, it helped me too! |
I have the same problem in Win10 x64. |
This is still an issue on Windows 7 as of 2.1.2016. The variables are not being evaluated in a child cmd. Solution is to open a fresh cmd window.@coreybutler I suppose you are using
A workaround is to supplement the |
I tried many of the above solutions, and the only one that ended up working for me was to restart Windows 7. 😞 |
FYI: Windows 7 support = deprecated. |
@vferko - I'm not explicitly using |
FYI: The ERROR open \settings.txt: [...] happened to me on a Win10 x64. After open a new cmd window seems there is all ok :) |
Still happens with the 1.1.0 in Win10 x64. Same as @dcorto restart cmd.exe and you're good |
I've got somehow different symptoms, but it seems to be related to this issue:
|
This should be resolved with the new installer. InnoSetup was upgraded for v1.1.7 and several new changes were made to install.cmd. Windows 7 is also not technically supported, by NVM4W or Microsoft. |
I got same error with the new 1.1.7 where is the user variable i dont see it on |
Sorry just restart the computer and its work 💯 |
This error is still present. I was using NVM without an issue for a while and now I've had a project which required me to move my NPM cache directly to the C drive (to avoid long path issues) and after I've made this change (probably, that's the only NPM configuration change that I did and the same day this started happening…) this issue started happening. I found that running Powershell as an admin allow me to run NVM with no issues, which is a workaround I'll be using for now (I might set the |
I don't think this will be a fix for all. But maybe for some. SHORT ANSWER: Try closing the command window and opening a new command window. LONG ANSWER: I found that if I installed nvm using the nvm_setup.exe (downloaded in nvm_setup.zip) from the windows command line (cmd.exe command window) and then tried to run nvm in the same command window session (right after installing), it gave me this error - ERROR open \settings.txt. I looked and the paths were added to my system PATH settings fine. So, I closed the command line window and opened up a new command window. It then worked. I think even though the install adds the path to nvm.exe (and to settings.txt) to the Windows PATH, it isn't recognized in that same command window yet. Close the command window and open a new one. Hope this helps someone. A suggestion for the installer is maybe give a message to user at beginning of install that the command window will close once install is complete. Then, just close the command window when the install finishes. Then the user is forced to open a new command window after installation. |
same with win10 + powershell, just close instance of cmd or powershell and restart a new cmd or powershell |
InnoSetup doesn't always respect the order of operations when writing the initial settings file and setting the path. This is why reopening the window works after initial install. |
I got error when i ran npx create react app it says enter the exact path where the zip file is extracted/copied: it's having after nvm installation and installation of node 12. |
This stil works (as workaround) @Muizuddeen |
Found that if you copy the |
I hit this issue on v1.1.9. |
Greetings. Thanks for all your time supporting NVM. I just downloaded and ran the install EXE for NVM 1.1.10. I do the nvm -v and get that version number back. I do nvm by itself and get the help info. When I try the "nvm install latest" command I get this back. ERROR open \settings.txt: The system cannot find the file specified. I can see all the files listed at the top of this Issue. Not sure what to do next. Need to get NPM installed, so I can run a OpenAPI generator to get a C# API library for a company I need to do API calls into. Thanks. |
I get this error sporadically on windows, which is annoying. I know that there are no issues with my path because I can enter |
Just got this with 1.1.11 today. The error is very specific that "\settings.txt" doesn't work. You need to put the file at the root of the hard-drive. Not sure why, but even when running from c:\nvm, it couldn't read the settings.txt from there, needed to be at c:\settings.txt. |
Above it was stated that the settings.txt file's content was: root: C:\Users\Corey\AppData\Roaming\nvm But, I found that it's the other way around: path: C:\Users\Corey\AppData\Roaming\nvm And with the security on my dev computer as tight as it was I had to place the nvm folder in Which worked fine. |
thank you... I used the zip file to use nvm... there is not this file in zip not intallable... then I created it with this information and did work... |
Quick Fix
|
Also ran into this on Windows 10 22H2 19045.4291 |
After installation process I just ran "npm" and it says:
ERROR open \settings.txt: [...]
The text was updated successfully, but these errors were encountered: