How to install nodejs and npm on windows using command lines

Viewed 18967

I am creating a package installer which has nodejs, redis, and socket.io as prerequisites. The problem is that I don't want the developers to install the prerequisites own their own.

I figured out a way of doing that using on mac and ubuntu by including brew install node for mac and sudo apt-get install nodejs, sudo apt-get install npm

I am now looking for a way to install nodejs on window using a command or two. Any Idea? Please.

4 Answers

Nodejs Alternative For Windows

Using Chocolatey:

cinst nodejs

or for full install with npm

cinst nodejs.install

Using Scoop:

scoop install nodejs

You could use:

cinst nodejs.install

This is great install with npm.

Install nodejs version 8.10.0 on window

  1. download the installer from the url given below

2.Install Angular 6 on window

  • Open command line as administrator
  • run below command in command line

    npm install -g @angular/cli@6

Related