This repository was archived by the owner on Nov 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
containers/codespaces-linux/.devcontainer Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ RUN bash /tmp/scripts/powershell-debian.sh \
83
83
&& apt-get clean -y
84
84
85
85
# Setup Node.js, install NVM and NVS
86
- RUN bash /tmp/scripts/node-debian.sh "${NVM_DIR}" "lts " "${USERNAME}" \
86
+ RUN bash /tmp/scripts/node-debian.sh "${NVM_DIR}" "v14.17.6 " "${USERNAME}" \
87
87
&& (cd ${NVM_DIR} && git remote get-url origin && echo $(git log -n 1 --pretty=format:%H -- .)) > ${NVM_DIR}/.git-remote-and-commit \
88
88
# Install nvs (alternate cross-platform Node.js version-management tool)
89
89
&& sudo -u ${USERNAME} git clone -c advice.detachedHead=false --depth 1 https://github.com/jasongin/nvs ${NVS_HOME} 2>&1 \
@@ -93,6 +93,8 @@ RUN bash /tmp/scripts/node-debian.sh "${NVM_DIR}" "lts" "${USERNAME}" \
93
93
# Set npm global location
94
94
&& sudo -u ${USERNAME} npm config set prefix ${NPM_GLOBAL} \
95
95
&& npm config -g set prefix ${NPM_GLOBAL} \
96
+ && . ${NVM_DIR}/nvm.sh \
97
+ && nvm use --delete-prefix v14.17.6 --silent \
96
98
# Clean up
97
99
&& rm -rf ${NVM_DIR}/.git ${NVS_HOME}/.git
98
100
You can’t perform that action at this time.
0 commit comments