Windows で npm を手動インストールする

Windowsnodemake コマンドが実行できる環境を前提としています。

  1. npm 本体のアーカイブをダウンロードする。03 - How to set up a new npm account & install npm | npm Documentation によればアーカイブの URL は []https://registry.npmjs.org/npm/-/npm-{VERSION}.tgz[]。現在のバージョンは Releases · npm/npm · GitHub などから確認できる。
  2. ダウンロードしたアーカイブを展開し、make.exe install を実行する。 make.bat というファイルが同じディレクトリにあることに注意。
  3. npm がグローバルにインストールされる。