Giter VIP home page Giter VIP logo

Comments (8)

heri16 avatar heri16 commented on May 18, 2024

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.

coreybutler avatar coreybutler commented on May 18, 2024

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

from nvm-windows.

heri16 avatar heri16 commented on May 18, 2024

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.

coreybutler avatar coreybutler commented on May 18, 2024

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.

jasonbrice avatar jasonbrice commented on May 18, 2024

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.

coreybutler avatar coreybutler commented on May 18, 2024

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.

dgreene1 avatar dgreene1 commented on May 18, 2024

Can a section on this be added to the readme? I'm still a bit lost on how to accomplish this.

from nvm-windows.

swap2ag avatar swap2ag commented on May 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.