Install the dependencies:
sudo apt-get install g++ curl libssl-dev apache2-utils sudo apt-get install git-coreDownload source code of version 0.8.8 from github:
git clone -b v0.8.8-release git://github.com/joyent/node.gitBuild and install node.js:
cd node sudo ./configure sudo make sudo make installTo get node.js version type:
node --versionCreate Hello world application
Create my-script.js file:
console.log("Hello world!!!")Run the code:
node my-script.jsOutput:
Hello world!!!
No comments:
Post a Comment