5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Windowsマシンにnvmを使ってNodeJSを入れる

Last updated at Posted at 2018-11-09

Windows Lover PHPer Nな人です!
今日は元気にNodeJSをWindowsに入れるよ!

なんかよく、「Windowsにはbrewがない!糞だ!!」とディスってくる人がいます(実話)が、
WindowsにはChocolateyというおちゃめな子がちゃんといるので、
全然クソじゃないというか、使いやすいです。

Chocolatyを入れる

Windowsのコマンドプロンプトを「管理者権限」で実行し、下記コマンドを実行します。

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

※上記コマンドは、Chocolatyのinstallページにも書いてます

nvmを入れる

choco install nvm

nvmはNodeJSのバージョン管理ツールだよ

nvmを使ってnodejsを入れる

nvm install v10.10.0
nvm use 10.10.0

NodeJSが入った?

node -v
# v10.10.0

楽しい ✌('ω'✌ )三✌('ω')✌三( ✌'ω')✌

5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?