Difference between revisions of "NodeJS"

From SME Server
Jump to navigationJump to search
(Barebones page on nodejs 10 installation)
 
(Add intro paragraph and link to nodejs.org)
Line 1: Line 1:
 
{{Level|Advanced}}
 
{{Level|Advanced}}
 +
Node.js® is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
 +
 +
http://nodejs.org/
  
 
==Prerequesites==
 
==Prerequesites==
 
* Requires Python 2.7 installed as described in [[Python Altinstall]]
 
* Requires Python 2.7 installed as described in [[Python Altinstall]]
* git
+
* git and g++
yum -y install git
+
  yum -y install git gcc-c++
* g++
 
  yum -y install gcc-c++
 
  
 
==Install==
 
==Install==

Revision as of 22:31, 23 August 2014

PythonIcon.png Skill level: Advanced
The instructions on this page may require deviations from standard procedures. A good understanding of linux and Koozali SME Server is recommended.


Node.js® is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

http://nodejs.org/

Prerequesites

yum -y install git gcc-c++

Install

mkdir -p /var/git
cd /var/git
RELEASE=$(curl -s http://nodejs.org/download/ |grep Current\ version |awk -F"[><]" '{print $5}')
git clone https://github.com/joyent/node.git
cd /var/git/node
git reset --hard
git checkout $RELEASE
export PYTHON=/usr/local/bin/python2.7
$PYTHON ./configure
make
make install

Update

RELEASE=$(curl -s http://nodejs.org/download/ |grep Current\ version |awk -F"[><]" '{print $5}')
cd /var/git/node
git reset --hard
git pull origin $RELEASE-release

Test

node -v