ubuntu server upgrade node.js v4 2 4

Опубликовано: 05 Апрель 2026
на канале: Andrew Bin
313
2

Way to upgrade node.js installation, for server

for ubuntu, the pre-compiled version,

cd /tmp
wget https://nodejs.org/dist/v4.2.4/node-v...
tar xvf node-v4.2.4-linux-x64.tar.xz
cd ./node-v4.2.4-linux-x64/bin
./node --version
./node # ... Ctrl-d
which node
cd # to the dir where the above command show
sudo mv node node-back-up-date
sudo mv npm npm-back-up-date
sudo ln -s /tmp/node-v4.2.4-linux-x64/bin/node
sudo ln -s /tmp/node-v4.2.4-linux-x64/bin/npm
new check the node installed ...

things about the package `bcrypt` `node-gyp`

http://stackoverflow.com/questions/33...

http://simon.fearby.com/blog/?p=2246

https://github.com/nodejs/node/blob/v...

https://github.com/nodejs/node/pull/2700