Comments (18)
The workaround mentioned in #22 worked!!
For wider audience I'm detailing the steps
Steps followed,
- Open cmd using Admin Privilege
- cd c:\users\AppData\Roaming\nvm
- cp settings.txt to c:\
I could use to copy settings.txt to c:\ .
from nvm-windows.
@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.
from nvm-windows.
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
from nvm-windows.
Oops! none of the workaround works for me.
I get the below error.
cp: cannot create regular file 'c:\\settings.txt': Permission denied
from nvm-windows.
Closing as a duplicate of issue #22.
from nvm-windows.
I'm getting the same error after installing 1.6.0 with hotfix.
PFA for settings.txt folder
from nvm-windows.
Sorry, I referenced the wrong issue when I closed this. It has still been filed before though. Please see issue #22.
from nvm-windows.
@reflexdemon needs to be an elevated cmd - make sure the title bar of the cmd.exe window says "Administrator:" like in the sshot.
from nvm-windows.
@jamesmanning apparently, I have a to do this on my work machine where I dont have admin rights.
from nvm-windows.
Had the same issue on Win 10. Reinstalled it and works fine now.
from nvm-windows.
@byteshiva use "copy" instead of "cp" if you don't have cygwin:
- Open cmd using Admin Privilege
- cd c:\users<username>\AppData\Roaming\nvm
copy settings.txt c:\
Works a treat thanks.
from nvm-windows.
@jamesmanning thank you!
from nvm-windows.
@jamesmanning thank you!
from nvm-windows.
@byteshiva Awesome, worked like a charm!
from nvm-windows.
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?
from nvm-windows.
@jamesmanning Works great.
Now why doesn't the installer do this for you?
from nvm-windows.
@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.
from nvm-windows.
@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.
from nvm-windows.
Related Issues (20)
- [Issue]: spaces in the installation path of nvm lead to errors using it HOT 2
- [Issue]: unable to install latest node HOT 1
- [Issue]: Invalid settings generation on install when user name contains non-ASCII characters HOT 6
- [Issue]: npm install -g @vue/cli 'vue' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 HOT 1
- [Issue]: `nvm use` command does not select any version HOT 4
- [Issue]: version changing and alternative try install.ps1 file miss issue HOT 4
- [Issue]: nvm.exe hangs when started by TeamCity because Stdout is not a character mode device HOT 3
- [Issue]: Unable to accept license agreement on the installation dialog HOT 1
- [Issue]: Symlink seems not working in exFAT filesystem HOT 2
- [Issue]: An existing connection was forcibly closed by the remote host. HOT 3
- [Issue]: Doesn't function correctly when settings.txt isn't ascii format HOT 2
- [Issue]: npm i taking to long when running through nvm-windows HOT 2
- [Issue]: NVM for Windows should be run from a terminal such as CMD or PowerShell. HOT 3
- [Issue]: nvm use command does not select certain versions HOT 3
- [Issue]: Why did my Anaconda folder get deleted after installing NVM on Windows? All my environments are gone! HOT 18
- [Feature]: Add "Details" metadata to the nvm.exe HOT 1
- [Issue]: Get "https://nodejs.org/dist/latest-v18.x/SHASUMS256.txt": write tcp 10.0.0.10:59499->104.20.22.46:443: wsasend: An existing connection was forcibly closed by the remote host. HOT 8
- [Issue]: Windows Firewall Issue with nvm HOT 3
- [Feature]: add `nvm install` to the command line syntax help HOT 1
- [Feature]: Proper Documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvm-windows.