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

  1. download from the website: http://nodejs.org/#download, and install for windows.
  2. push ...\nodejs to the system path.
  3. clone npm from github using: git clone https://github.com/npm/npm.git
  4. 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.

Empty Comments
Sign in GitHub

As the plugin is integrated with a code management system like GitLab or GitHub, you may have to auth with your account before leaving comments around this article.

Notice: This plugin has used Cookie to store your token with an expiration.