Skip to content

Commit

Permalink
fix: Don't install a system version of Node
Browse files Browse the repository at this point in the history
`nvm --lts` appears to be installing Node v18.

Node 18 has switched the version of `glibc`, and the version it wants does not seem to be present on the AMI.

Given Node 18 enters a formal LTS in Oct 2022, and builds should be individually managing their node version,
this change removes any system wide install of node.

See: nodejs/node#42659
  • Loading branch information
akash1810 committed May 10, 2022
1 parent 6280fd7 commit 8a79574
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions roles/teamcity-agent/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@
set -e
curl -o- https://raw.githubusercontent.com/creationix/nvm/v{{nvm_version}}/install.sh | bash
source /opt/teamcity/.nvm/nvm.sh
nvm install node
nvm install --lts
become: yes
become_user: teamcity
args:
Expand Down

0 comments on commit 8a79574

Please sign in to comment.