Node.js 0.4.5 Released w/ many bug fixes
blog.nodejs.org
blog.nodejs.org
(The may be a question better asked on the google group)
The latest vid from ryan ~ http://blog.nodejs.org/2011/03/17/welcome-to-the-node-blog/ explained the need to download & install from source. This presumes you have V8 installed. Holler if you get into trouble I've installed a few times on Ubuntu 8.04 Hardy Heron.
It isn't 100% necessary. You can install from binaries. But as node is a moving target as a dev you get the best feature set/bug fixed version, faster. The talk hasn't been transcribed to my knowledge. Why not view the vid or ask @ryan or irc://irc.freenode.net#freenode why from source? The install instructions here ~ https://github.com/joyent/node/wiki/Installation or install binaries here ~ https://github.com/joyent/node/wiki/Installing-Node.js-via-p...
Yes, right. From v1 (I only looked back to 1) V8 is installed. I install it anyway.
#!/bin/bash
apt-get install build-essential g++ curl libssl-dev apache2-utils pkg-config
wget http://nodejs.org/dist/node-v0.4.5.tar.gz
gunzip node-v0.4.5.tar.gz
tar -xf node-v0.4.5.tar
cd node-v0.4.5
./configure
make
make installcurl http://nodejs.org/dist/node-v0.4.5.tar.gz | tar -zxvf -
-z GZip compressed input -x Extract -v Verbose -f File
sudo add-apt-repository ppa:jerome-etienne/neoip
sudo apt-get update
sudo apt-get install nodejs
I got 0.4.5 this morning from the usual upgrade, before I even saw the news.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.Need to get 0B/1,834kB of archives.
After this operation, 5,349kB of additional disk space will be used.
Selecting previously deselected package nodejs. (Reading database ... 57171 files and directories currently installed.)
Unpacking nodejs (from .../nodejs_0.2.6~lucid1~ppa201101061407_amd64.deb) ...
Setting up nodejs (0.2.6~lucid1~ppa201101061407) ...
Checkout from github: git://github.com/joyent/node.git
Now:
git checkout v0.4.5
./configure
make
sudo make install
node -v
There are other ways, but this is pretty simple. Note that when you checkout the tag you will be in a detached HEAD state, which is fine, but when you next want to git pull, make sure you checkout master first, then checkout the next tag you require. You can see all tags with: git tag.https://github.com/creationix/nvm
Similar to Ruby's rvm.