install node.js on ubuntu

hai ca daca tot e in trend treaba cu node.js, hai sa il instalam si noi (pe ubuntu, dar se poate pe orice inseamna linux)

Install node.js

1. incepem cu niste dependente

1
sudo apt-get install g++ curl libssl-dev apache2-utils

2. download-am + dezarhivam sursele (ultima versiune din acestt moment):

1
2
wget http://nodejs.org/dist/node-v0.4.8.tar.gz
tar -xzf node-v0.4.8.tar

3. si la final, instalam node.js:

1
2
3
4
cd node-v0.4.8
./configure
make
sudo make install


Hello World

prima interactiune cu node.js:

1
2
$ node -v
v0.4.8

pentru genericul “hello world” creem fisierul hello.js cu continutul:

1
console.log( "hello world!" );

si il executam:

1
2
$ node hello.js
hello world!

atat.

Articole asemanatoare:

  1. send emails from nodejs

Leave a Comment


josphine.leppink@mailxu.com latonia.epperley mortonapplonie http://lqu.mailxu.com