Skip to content

Commit

Permalink
Merge pull request #447 from aws-samples/xuhan-dev
Browse files Browse the repository at this point in the history
chore: update setup_env.py to fix npm install issue
  • Loading branch information
NingLu authored Nov 29, 2024
2 parents 3a71952 + 1791e55 commit 8cb96ff
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 8cb96ff

Please sign in to comment.