How to build up Node.js and npm on Windows Back
- download from the website: http://nodejs.org/#download, and install for windows.
...\nodejsto the system path.
npmfrom github using:
git clone https://github.com/npm/npm.git
- install it with
node cli.js install -gfin the directory.
If you want to upgrade npm, you can install
npm-windows-upgrade to upgrade it automatically:
npm install -g npm-windows-upgrade npm-windows-upgrade
And then, remember not to run the following snippet directly:
npm install -g npm
If you want to upgrade Node.js, you may just have to redownload a new installer from https://nodejs.org/en/download to override it.