Skip to content

Instantly share code, notes, and snippets.

@m-nori
Last active December 10, 2015 23:08
Show Gist options
  • Save m-nori/4507686 to your computer and use it in GitHub Desktop.
Save m-nori/4507686 to your computer and use it in GitHub Desktop.
Node.jsの環境作成

node.jsの環境作成

node.jsの環境を簡単に作成する。


ライブラリのインストール

AWSだと入っていないので。

$ yum install openssl-devel git make gcc gcc-c++ wget

nodebew

$ curl https://raw.github.com/hokaccha/nodebrew/master/nodebrew | perl - setup
$ echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.zshrc
$ . ~/.zshrc

node.js

$ nodebrew install stable

npmの補完が効くようにする

$ npm completion >> ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment