Node.js

From KevinWiki

(Difference between revisions)
Jump to: navigation, search
(Created page with "= Install Node.js and NPM = <pre> $ git clone https://github.com/joyent/node.git $ cd node #Try checking nodejs.org for what the stable version is $ git checkout v0.10.13 $ ./...")
(Install Node.js and NPM)
 
(7 intermediate revisions not shown)
Line 1: Line 1:
 +
[[Category:JavaScript]]
= Install Node.js and NPM =
= Install Node.js and NPM =
-
<pre>
+
 
-
$ git clone https://github.com/joyent/node.git  
+
$ git clone https://github.com/joyent/node.git  
-
$ cd node  
+
$ cd node  
-
#Try checking nodejs.org for what the stable version is
+
# Visit the [http://nodejs.org Node.js website] to find out the current version.
-
$ git checkout v0.10.13
+
$ git checkout v0.10.22
-
$ ./configure && make && sudo make install  
+
$ ./configure && make && sudo make install
-
</pre>
+
 
 +
During installation, if the following error occurs (e.g. <code>g++: Command not found</code>), install the <code>build-essential</code> package.
 +
$ sudo apt-get install build-essential

Latest revision as of 11:44, 17 November 2013

Install Node.js and NPM

$ git clone https://github.com/joyent/node.git 
$ cd node 
# Visit the Node.js website to find out the current version.
$ git checkout v0.10.22 
$ ./configure && make && sudo make install

During installation, if the following error occurs (e.g. g++: Command not found), install the build-essential package.

$ sudo apt-get install build-essential
Personal tools