LoginSignup
48

More than 5 years have passed since last update.

posted at

CentOS6にNode.js環境を構築

サーバーサイドJavaScriptエンジンの本命、Node.jsの環境構築手順

EPELリポジトリを追加
sudo rpm -ivh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
nodejsとnpmをインストール
sudo yum -y install nodejs npm --enablerepo=epel
バージョン確認
$ node -v
v0.10.32
$ npm -v
1.3.6
HelloWorld
$ vi hello.js
hello.js
console.log("hello world");
hello.jsの実行
$ node hello.js
hello world

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
What you can do with signing up
48