1
1

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 5 years have passed since last update.

メモに使ってたブログ消すからnvmを使ったNode.js環境を作るコピペ手順をこっちに書く。

Posted at

前に描いた奴と内容はほぼ一緒だけど自分的にやりやすく書く

事前準備

Gitから入れるのでgitは入れておいてね!

$ brew install git とか
$ yum install git とか

nvm (Node Version Manager) のインストール

git clone git://github.com/creationix/nvm.git ~/.nvm

.bash_profileに以下を記述

.bash_profile
[[ -s ~/.nvm/nvm.sh ]] && . ~/.nvm/nvm.sh

コンソール立ち上げ直すbashを読み込ませる

$ bash

nvm使ってNode.jsをインストール

インストールできるバージョンを確認
$ nvm ls-remote
インストール
$ nvm install v*.**.*
デフォルトに設定
$ nvm alias default v*.**.*
確認
$ nvm ls

73fcd6bcddf33f0e73b7d9392a5b326e.png

以上!!!

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?