6.10.3::

wget https://nodejs.org/dist/v6.10.3/node-v6.10.3-linux-x64.tar.xz
tar xvJf node-v6.10.3-linux-x64.tar.xz
mv node-v6.10.3-linux-x64 /usr/local/node-v6
ln -s /usr/local/node-v6/bin/node /bin/node
ln -s /usr/local/node-v6/bin/npm /bin/npm
echo 'export PATH=/usr/local/node-v6/bin:$PATH' >> /etc/profile
source /etc/profile

10.15.2:

wget https://nodejs.org/dist/v10.15.2/node-v10.15.2-linux-x64.tar.xz
tar xvJf node-v10.15.2-linux-x64.tar.xz
mv node-v10.15.2-linux-x64 /usr/local/node-v10
ln -s /usr/local/node-v10/bin/node /bin/node
ln -s /usr/local/node-v10/bin/npm /bin/npm
echo 'export PATH=/usr/local/node-v10/bin:$PATH' >> /etc/profile
source /etc/profile

吾爱博客|AYFRE.COM 版权所有,转载请标明出处
吾爱博客 » Centos安装Node.js

发表评论

吾爱博客|AYFRE.COM