Merge pull request #3349 from phantomboyA/fix-nvm-error

improvement on nvm installation in workspace container
This commit is contained in:
Shao Yu-Lung (Allen) 2023-03-29 14:45:06 +08:00 committed by GitHub
commit f4c0bfec64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -741,6 +741,7 @@ RUN if [ ${INSTALL_NODE} = true ]; then \
&& nvm install ${NODE_VERSION} \ && nvm install ${NODE_VERSION} \
&& nvm use ${NODE_VERSION} \ && nvm use ${NODE_VERSION} \
&& nvm alias ${NODE_VERSION} \ && nvm alias ${NODE_VERSION} \
&& npm cache clear --force \
&& npm config set fetch-retries ${NPM_FETCH_RETRIES} \ && npm config set fetch-retries ${NPM_FETCH_RETRIES} \
&& npm config set fetch-retry-factor ${NPM_FETCH_RETRY_FACTOR} \ && npm config set fetch-retry-factor ${NPM_FETCH_RETRY_FACTOR} \
&& npm config set fetch-retry-mintimeout ${NPM_FETCH_RETRY_MINTIMEOUT} \ && npm config set fetch-retry-mintimeout ${NPM_FETCH_RETRY_MINTIMEOUT} \