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

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

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 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.