Windows で npm を手動インストールする
Windows で node
と make
コマンドが実行できる環境を前提としています。
- 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 などから確認できる。 - ダウンロードしたアーカイブを展開し、
make.exe install
を実行する。make.bat
というファイルが同じディレクトリにあることに注意。 - npm がグローバルにインストールされる。