-
StartでPowerShellと検索します
Windows PoweShellというものが出てくると思います。(出てこなかった場合は…すみません分かりません)
それを右クリックして、「管理者として実行する」を選びます -
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
システムに対してスクリプトを実行できるようにこのコマンドを実行します。 -
npm install --global --production npm-windows-upgrade
アップグレードツールをインストールします -
npm-windows-upgrade
後は実行するのみです。バージョンがいくつか並んで出てくるので、その中から任意のものを選びます。
ちなみに、「とりあえず最新版が欲しい」場合は下記の様なオプションがあるみたいです。npm-windows-upgrade --npm-version latest
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme