You can install using this msiexec, select the version that's most suitable for you in the link
msiexec.exe /a https://nodejs.org/dist/v8.3.0/node-v8.3.0-x64.msi /quiet
Answer from Kalana Demel on Stack OverflowYou can install using this msiexec, select the version that's most suitable for you in the link
msiexec.exe /a https://nodejs.org/dist/v8.3.0/node-v8.3.0-x64.msi /quiet
I was running in the ServerCore windows container on Gitlab so the msiexec.exe did not work for me. However found another answer that did work over here from user Witcher: Docker + Node.js + Windows
The commands in the container that ended up working in my gitlab yml file before_script were:
Invoke-WebRequest 'https://nodejs.org/dist/v18.12.0/node-v18.12.0-win-x64.zip' OutFile 'C:/nodejs.zip'
Expand-Archive C:\nodejs.zip -DestinationPath C:\
Rename-Item "C:\\node-v18.12.0-win-x64" C:\nodejs
$Env:Path += ";C:\nodejs"
This is downloading the Zip file from Nodejs's site to the root of C, expanding the archive, and setting the nodejs path to the environment path variable so the "npm" command is recognized.
Videos
THe same Article Guide I wrote is linked here Article Link and has Photos for a nicer reading experience!
Download the nvm-setup.exe in the link below
NVM for Windows Download
Run the nvm-setup.exe by clicking on it and follow the on screen setup instructions
Check if you installed NVM sucessfully by using the command
nvm --versionin a Windows TerminalTo install Node.js with nvm you can now run
nvm install ltsto install the long term support version of nodeCheck which versions of node you have then use it as shown with
nvm listand thennvm usemake sure you are in administrator modeCheck if node is working by running
node --version