Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 25167fb

Browse files
committed
remove warning
1 parent f34a8ca commit 25167fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

containers/codespaces-linux/.devcontainer/base.Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ RUN bash /tmp/scripts/powershell-debian.sh \
8383
&& apt-get clean -y
8484

8585
# 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}" \
8787
&& (cd ${NVM_DIR} && git remote get-url origin && echo $(git log -n 1 --pretty=format:%H -- .)) > ${NVM_DIR}/.git-remote-and-commit \
8888
# Install nvs (alternate cross-platform Node.js version-management tool)
8989
&& 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}" \
9393
# Set npm global location
9494
&& sudo -u ${USERNAME} npm config set prefix ${NPM_GLOBAL} \
9595
&& npm config -g set prefix ${NPM_GLOBAL} \
96+
&& . ${NVM_DIR}/nvm.sh \
97+
&& nvm use --delete-prefix v14.17.6 --silent \
9698
# Clean up
9799
&& rm -rf ${NVM_DIR}/.git ${NVS_HOME}/.git
98100

0 commit comments

Comments
 (0)