赞
踩
cd /root/
wget https://nodejs.org/dist/v10.16.0/node-v10.16.0.tar.gz
cd /root/
wget https://nodejs.org/dist/v10.16.0/node-v10.16.0.tar.gz
tar -xf node-v10.16.0.tar.gz
cd node-v10.16.0
./configure
make && make install
node -v
npm -v
rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
yum makecache fast
curl --silent --location https://rpm.nodesource.com/setup_10.x | bash -
yum -y install nodejs
node -v
npm -v
cd /root
wget https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-x64.tar.xz
tar -xf node-v10.16.0-linux-x64.tar.xz -C /usr/local
echo 'export NODE_HOME=/usr/local/node-v10.16.0' >> /etc/profile
echo 'export PATH=$NODE_HOME/bin/:$PATH' >> /etc/profile
source /etc/profile
node -v
npm -v
npm config set registry --registry=https://registry.npm.taobao.org
npm install -g grunt-cli --registry=https://registry.npm.taobao.org # -g表示全局安装
npm install express --registry=https://registry.npm.taobao.org
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。