Skip to content

Commit 5794bcc

Browse files
eng, set default node version to 18.15.0 (#38135)
* set default node version to 18.15.0 * revert change on sdk_init.sh * Update init.sh
1 parent ad74eee commit 5794bcc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

eng/mgmt/automation/init.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ sudo apt-get install -y --upgrade python3-pip python3-setuptools
44
pip3 install --upgrade wheel
55
pip3 install --upgrade PyYAML requests
66

7+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
8+
export NVM_DIR="$HOME/.nvm"
9+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
10+
nvm install v18.15.0
11+
nvm alias default node
12+
713
cat << EOF > $2
814
{"envs": {"PATH": "$JAVA_HOME_11_X64/bin:$PATH", "JAVA_HOME": "$JAVA_HOME_11_X64"}}
9-
EOF
15+
EOF

0 commit comments

Comments
 (0)