node.js - Installing nodejs 0.10.36 on Ubuntu Trusty 64 -


how it, exactly?

i go way:

sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs 

but gives me 0.10.33. using apt-get preferable way me set ansible , want degree of compartability bash script like

wget http://nodejs.org/dist/v${node_version}/${node_dist}.tar.gz tar xvzf ${node_dist}.tar.gz sudo rm -rf /opt/nodejs sudo mv ${node_dist} /opt/nodejs  sudo ln -sf /opt/nodejs/bin/node /usr/bin/node sudo ln -sf /opt/nodejs/bin/npm /usr/bin/npm 

would latest resort.

i run locally on virtualbox vagrant image ubuntu/trusty64.

what using n?

n version manager node.js, allow have several version installed (and install them you), , run script version want.

you can do: npm install -g n , then, n 0.10.36 or if want last version n latest or last stable: n stable.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -