2
2

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.

node.jsの環境をサクッと

Posted at

node.js環境構築

###nvm

$ git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && $ git checkout `git describe --abbrev=0 --tags`
$ source ~/.nvm/nvm.sh
$ nvm --version

###node

node.jsを入れる
// インストールするversionの確認
$ nvm ls-remote
// インストール
$ nvm install v6.10.0
// versionの切り替え
$ nvm use v7.10.0
// インストールされているnodeのバージョンを確認
$ nvm ls

###npm

npmのversionを確認
$ npm --version
3.10.10
npm自体のversionをあげる
$ npm install -g npm
npmversion確認するとversionが上がっている
$ npm --version
5.0.0
2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?