dimanche, décembre 28, 2014

install nodejs latest release


Install nodejs latest release on MacOS

curl -sSL http://nodejs.org/dist/latest | grep pkg | sed -E 's/.*>(node.*pkg).*/\1/' | xargs -I '{}' curl --write-out %{url_effective} -L -O http://nodejs.org/dist/latest/'{}' | sed -E 's/.*\/(node.*pkg)/\1/' | xargs -I '{}' echo launch '{}'

Note : you have to launch the pkg file
Note : the pkg file will launch an UI


Install nodejs latest release on Linux 64bits

curl -sSL http://nodejs.org/dist/latest | grep linux | grep 64 | sed -E 's/.*>(node.*gz).*/\1/' | xargs -I '{}' curl --write-out %{filename_effective} -L -O http://nodejs.org/dist/latest/'{}' | xargs -I '{}' tar -xvzf '{}'

Aucun commentaire: