Skip to content

Commit

Permalink
chore: update setup_env.py to fix npm install issue
Browse files Browse the repository at this point in the history
  • Loading branch information
IcyKallen committed Nov 29, 2024
1 parent fbd244c commit 1791e55
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion source/script/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ sudo yum groupinstall "Development Tools" -y
sudo yum install python3 -y
sudo yum install python3-pip -y
# Install Node.js and npm
sudo yum install nodejs npm -y
node_version="v22.11.0"
file_name="node-${node_version}-linux-x64"
wget "https://nodejs.org/dist/${node_version}/${file_name}.tar.xz"
sudo tar xvf "${file_name}.tar.xz" --directory=/usr/local
sudo mv "/usr/local/${file_name}" /usr/local/nodejs
sudo ln -sf /usr/local/nodejs/bin/node /usr/bin/node
sudo ln -sf /usr/local/nodejs/bin/npm /usr/bin/npm
# Install AWS CLI
pip3 install awscli
# Install Docker
Expand Down

0 comments on commit 1791e55

Please sign in to comment.