Comments (8)
I updated "install.cmd" file with these lines to make installation even easier (simple and clean):
set /P NVM_PATH="Enter the path where zip file is extracted/copied to: "
setx /M NVM_HOME "%NVM_PATH%"
setx /M NVM_SYMLINK "C:\Program Files\nodejs"
setx /M PATH "%PATH%;%NVM_HOME%;%NVM_SYMLINK%"
if exist "%SYSTEMDRIVE%\Program Files (x86)" (
set SYS_ARCH=64
) else (
set SYS_ARCH=32
)
(echo root: %NVM_HOME% && echo path: %NVM_SYMLINK% && echo arch: %SYS_ARCH% && echo proxy: none) > %NVM_HOME%\settings.txt
notepad %NVM_HOME%\settings.txt
KISS Principle - Keep It Simple Stupid
from nvm-windows.
If you need a more complex install, why not just use the installer version?
from nvm-windows.
The installer does not work on Windows server core. And the installer does nothing extra that Powershell cannot already do, which together with unattended MSI is commonly used for corporate server devops and agentless ochestration/deployments.
from nvm-windows.
First, I am not opposed to this... I want to make that very clear. In fact, I'm happy to add this to the noinstaller version. I just want to make sure I fully understand the use case and existing problems so they're addressed properly and completely... I'd really like to know more detail about where the installer is failing. Ultimately, I'd rather focus attention on creating a universal installer that works on all platforms, as opposed to maintaining multiple scripts. This should be much easier since my request for a Bitrock open source license recently came through... I will be rebuilding the installer and I can take the time to knock out issues/make improvements.
For the time being, I can easily copy/paste your script myself, but I'd prefer you create a Pull Request so you'll get credit as a contributor. The script should go in the bin
directory, which is where the assets are stored that get packaged in the release.
Last but certainly not least, thanks for this contribution!
from nvm-windows.
Just echoing support for this... I fumbled around trying to figure out why all the nvm cli commands failed with "Could not be found or does not exist" before I looked at the src for nvm.go. That led me to understand I needed to create a settings.txt and an NVM_HOME env variable.
from nvm-windows.
I included the script, almost exactly as is, in the master branch. I have several other things to add before the next release, but this will be included in the "no-install" download going forward.
from nvm-windows.
Can a section on this be added to the readme? I'm still a bit lost on how to accomplish this.
from nvm-windows.
@dgreene1 You need to run the script install.cmd
. If you don't have admin permissions, then you need to remove /M
from the install.cmd
script and then run it.
Also, `C:\Program Files" might not be available for users not having admin permissions. @coreybutler Can you please fix it?
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.