How do I install the latest version of node.js?
-
How do I install http://nodejs.org/ in Ubuntu? I've been looking around, and I can't find anything. Is there a Ubuntu package for node.js, or do I have to compile it myself?
-
Answer:
You can use this node.js PPA: https://launchpad.net/~chris-lea/+archive/node.js (http://askubuntu.com/q/4983) If you're on Ubuntu Server, first do this: sudo apt-get install python-software-properties Then, do this: sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs Then, you have the latest version of node.js installed.
jrg at Ask Ubuntu Visit the source
Other answers
Yes, go to Synaptic, search for "nodejs". The packages are located in the universe repository. I suggest you install all of the packages starting with nodejs if you are doing development. Just in case that doesn't work: sudo apt-get install g++ curl libssl-dev apache2-utils git-core git clone git://github.com/joyent/node.git cd node ./configure make sudo make install That will download the sourcecode of node.js, make it and install it.
nickguletskii
Node is one of the easier projects to build. Just change the version as that continues to change. $ cd /usr/local/src $ wget http://nodejs.org/dist/v0.8.21/node-v0.8.21.tar.gz $ tar -xvzf node-v0.8.21.tar.gz $ cd node-v0.8.21 $ ./configure $ make $ sudo make install $ which node You should see /usr/local/bin/node.
Jarrett Meyer
Chris Lea PPA offers the most updated compiled version of Node.js. Whom (and how) could I beg to maintain official "universe" version of Node.js as updated as Chris Lea's version? I'd like to install official package from official repositories...Maybe it's a sillyness, but doing this gives me a feeling that there's more than just one person behind the future maintenance of the package. Thanks
Paco Porras
Use https://github.com/creationix/nvm which allows you to use multiple versions of node (analogous to rvm and virtualenv, widely considered best practice in Ruby and Python communities). It downloads a precompiled binary where possible, and if not compiles for you. Example: curl https://raw.github.com/creationix/nvm/master/install.sh | sh source ~/.nvm/nvm.sh # May take a while if compilation required: nvm install 0.9.0 nvm install 0.9.9 node use 0.9.0 node --version #v0.9.0 node use 0.9.9 node --version #v0.9.9 Since the sourcing has to be done for every new shell, you will probably want to: echo 'source ~/.nvm/nvm.sh nvm use 0.9.9 &>/dev/null ' >> ~/.bashrc
Ciro Santilli
I am always leery of using a non-official PPA - it usually works out, but I like there to be some level of official association between the distribution channel and the project that I am using... Personally, this is the best bang for my buck when it comes to a resource for the many good ways to install Node - https://gist.github.com/isaacs/579814
mattezell
Related Q & A:
- How can I install node.js module using phantom, instead of npm?Best solution by Stack Overflow
- How do I change HTML content to be a JS variable?Best solution by ehow.com
- I can't install the latest version of MSN.Best solution by answers.yahoo.com
- How to easily install the latest Delphi?Best solution by Yahoo! Answers
- Where can I get the latest version o yahoo msg?Best solution by news.softpedia.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.