HOWTO : Install Node.js 0.12.7 on Ubuntu 14.04.2 LTS x86_64
Install node.js binaries :
Install express :
Install express executable :
Create a project namely blog, for example :
To run the blog project :
Start the browser at
Now, you can edit the files in the blog directory to made you site.
Remark :
If you are compiling Node.js from source, you need the following packages :
That's all! See you.
wget https://nodejs.org/dist/v0.12.7/node-v0.12.7-linux-x64.tar.gz
cd /usr/local && sudo tar --strip-components 1 -xzf ~/node-v0.12.7-linux-x64.tar.gz
node --version
npm --version
Install express :
sudo npm install -g express
Install express executable :
sudo npm install -g express-generator
Create a project namely blog, for example :
express blog
cd blog
sudo npm install
To run the blog project :
npm start
Start the browser at
http://localhost:3000
and you will see a sample site.Now, you can edit the files in the blog directory to made you site.
Remark :
If you are compiling Node.js from source, you need the following packages :
sudo apt-get install build-essential libssl-dev apache2-utils
That's all! See you.