此方法是简单除暴的安装指定版本的Node.js
//Download
cd ~/Downloads
wget https://nodejs.org/dist/v4.4.5/node-v4.4.5-linux-x64.tar.xz
//Install
cd /usr/local
tar --strip-components 1 -xJf ~/Downloads/node-v4.4.5-linux-x64.tar.xz
//Verify
node -v npm version
//Download
cd ~/Downloads
wget https://nodejs.org/dist/v4.4.5/node-v4.4.5-linux-x64.tar.xz
//Install
cd /usr/local
tar --strip-components 1 -xJf ~/Downloads/node-v4.4.5-linux-x64.tar.xz
//Verify
node -v npm version
本文标题:Ubuntu安装指定版本的Node
本文链接:https://www.haomeiwen.com/subject/lxkkhxtx.html
网友评论