Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 748 Bytes

nodejsandnpmonwindows.md

File metadata and controls

21 lines (15 loc) · 748 Bytes

How to build up Node.js and npm on Windows Back

  1. download from the website: http://nodejs.org/#download, and install for windows.
  • push ...\nodejs to the system path.
  • clone npm from github using: git clone https://github.com/npm/npm.git
  • install it with node cli.js install -gf in 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.