浏览代码

linux version updates

master
samuel 11 个月前
父节点
当前提交
182479d27b
共有 1 个文件被更改,包括 7 次插入4 次删除
  1. 7
    4
      linux_setup_el.sh

+ 7
- 4
linux_setup_el.sh 查看文件

@@ -22,13 +22,16 @@ git config --global credential.helper store

# Install prerequisites
#NODE JS 16.17.1
wget https://nodejs.org/dist/v16.17.1/node-v16.17.1-linux-x64.tar.xz
tar -xf node-v16.17.1-linux-x64.tar.xz
node-v20.8.0-linux-x64.tar.xz
wget https://nodejs.org/dist/v20.8.0/node-v20.8.0-linux-x64.tar.xz
tar -xf node-v20.8.0-linux-x64.tar.xz
# Move the extracted folder to /usr/local/lib
sudo mv node-v16.17.1-linux-x64 /usr/local/lib/
sudo mv node-v20.8.0-linux-x64 /usr/local/lib/
# Create a symbolic link to the node executable
sudo ln -s /usr/local/lib/node-v16.17.1-linux-x64/bin/node /usr/local/bin/node
sudo ln -s /usr/local/lib/node-v20.8.0-linux-x64/bin/node /usr/local/bin/node
sudo ln -s /usr/local/lib/node-v20.8.0-linux-x64/bin/npm /usr/local/bin/npm
node -v
npm -v

#NPM
sudo yum install npm

正在加载...
取消
保存