From 64822d0f64beddf81dd80c58afa951453b8453a6 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Tue, 6 Sep 2022 13:34:34 -0700 Subject: [PATCH] docs: add comment to npm-postinstall.sh (#5541) --- 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 8e0e4367..7d5e13b0 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 ;;