Easier No-Install instructions #20

heri16 opened this Issue Nov 4, 2014 · 6 comments


None yet

3 participants

heri16 commented Nov 4, 2014

We should be using powershell/CLI in the wiki/scripts to assist the user.
Create an "install.cmd" file with these lines:

setx /m NVM_HOME "C:\nvm"
setx /m NVM_SYMLINK "C:\Program Files\nodejs"
(echo root: C:\nvm && echo path: C:\Program Files\nodejs && echo arch: 64 && echo proxy: none) > C:\nvm\settings.txt
notepad C:\nvm\settings.txt

heri16 commented Nov 4, 2014

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_SYMLINK "C:\Program Files\nodejs"

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


If you need a more complex install, why not just use the installer version?

heri16 commented Nov 5, 2014

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.


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!


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.


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.

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