From 175fa0e56045203e4f6f315d54a25e8e7b80a7e9 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Tue, 6 Sep 2022 11:51:05 -0700 Subject: [PATCH] docs: add comment to npm-postinstall.sh --- ci/build/npm-postinstall.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/build/npm-postinstall.sh b/ci/build/npm-postinstall.sh index 8e0e4367d005..7d5e13b02910 100755 --- a/ci/build/npm-postinstall.sh +++ b/ci/build/npm-postinstall.sh @@ -140,6 +140,9 @@ install_with_yarn_or_npm() { echo "yarn.lock file present, running in development mode. use yarn to install code-server!" exit 1 else + # HACK: NPM's use of semver doesn't like resolving some peerDependencies that vscode (upstream) brings in the form of pre-releases. + # The legacy behavior doesn't complain about pre-releases being used, falling back to that for now. + # See https://github.com//pull/5071 npm install --unsafe-perm --legacy-peer-deps --omit=dev fi ;;