Skip to content
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

Throws ERROR open \settings.txt in windows 7 #39

Closed
byteshiva opened this issue Feb 10, 2015 · 18 comments
Closed

Throws ERROR open \settings.txt in windows 7 #39

byteshiva opened this issue Feb 10, 2015 · 18 comments

Comments

@byteshiva
Copy link

I'm getting this error "ERROR open \settings.txt: The system cannot find the file specified." after installing in windows 7.

image

@coreybutler
Copy link
Owner

Closing as a duplicate of issue #22.

@byteshiva
Copy link
Author

I'm getting the same error after installing 1.6.0 with hotfix.

image

PFA for settings.txt folder

image

@coreybutler
Copy link
Owner

Sorry, I referenced the wrong issue when I closed this. It has still been filed before though. Please see issue #22.

@byteshiva
Copy link
Author

The workaround mentioned in #22 worked!!

For wider audience I'm detailing the steps
Steps followed,

  1. Open cmd using Admin Privilege
  2. cd c:\users\AppData\Roaming\nvm
  3. cp settings.txt to c:\

image

I could use to copy settings.txt to c:\ .

@reflexdemon
Copy link

Oops! none of the workaround works for me.

I get the below error.

cp: cannot create regular file 'c:\\settings.txt': Permission denied

@jamesmanning
Copy link

@reflexdemon needs to be an elevated cmd - make sure the title bar of the cmd.exe window says "Administrator:" like in the sshot.

@reflexdemon
Copy link

@jamesmanning apparently, I have a to do this on my work machine where I dont have admin rights.

@dreamingUpCode
Copy link

Had the same issue on Win 10. Reinstalled it and works fine now.

@hutber
Copy link

hutber commented Nov 24, 2015

I know its stupid, but I don't really like having a settings file in my root :( I like a clean drive at all times

@jamesmanning
Copy link

@jamiehutber @reflexdemon just searching for settings.txt seems to indicate that it's looking for the file related to the NVM_HOME environment variable, so setting that might be sufficient?

From an elevated cmd prompt, you should be able to run:

setx /m NVM_HOME %APPDATA%\nvm  

Then open a new cmd prompt (so it has that variable set, it won't populate into existing ones) and try nvm without settings.txt in the root?

Seems like the install mechanism should set that variable if it's not already set, I would guess?

It looks like the 'manual' install method already does so, AFAICT.

@lorezzed
Copy link

lorezzed commented Jan 7, 2016

@byteshiva use "copy" instead of "cp" if you don't have cygwin:

  1. Open cmd using Admin Privilege
  2. cd c:\users<username>\AppData\Roaming\nvm
  3. copy settings.txt c:\

Works a treat thanks.

@kpentchev
Copy link

@jamesmanning thank you!

1 similar comment
@henrycaosg
Copy link

@jamesmanning thank you!

@kkoci
Copy link

kkoci commented May 7, 2016

@byteshiva Awesome, worked like a charm!

@fritx
Copy link

fritx commented May 17, 2016

When I clicked the install.cmd, the settings.txt prompted, but I didn't save the file.
The settings.txt would never prompt again.
What could I do?

@ghost
Copy link

ghost commented Jun 9, 2016

@jamesmanning Works great.

Now why doesn't the installer do this for you?

@coreybutler
Copy link
Owner

@errorx666 - The installer attempts to do this. However; I've seen hundreds of configurations now that are pretty customized... typically the installer fails silently due to a missing permission. The next version will have a new installer, but that may still be a ways off. Installers are, without any doubt whatsoever, the most time consuming element of this entire project.

For anyone coming across this, I'm looking for contributors who will build and maintain installers across different operating systems.

@ghost
Copy link

ghost commented Jun 9, 2016

@coreybutler It may be as easy as changing the installer filename. IIRC, Windows uses the setup.exe filename as a heuristic for backwards compatibility, and automatically creates a UAC prompt to elevate to admin privileges. I'm not sure if Windows' default configuration of opening zip files as "Compressed Folders" affects anything, but in my case, it removed the "Run as Administrator" option from the context menu, and probably led to my broken installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests