Skip to content

Commit 64822d0

Browse files
authored
docs: add comment to npm-postinstall.sh (#5541)
1 parent 74017ec commit 64822d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ci/build/npm-postinstall.sh

+3
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ install_with_yarn_or_npm() {
140140
echo "yarn.lock file present, running in development mode. use yarn to install code-server!"
141141
exit 1
142142
else
143+
# HACK: NPM's use of semver doesn't like resolving some peerDependencies that vscode (upstream) brings in the form of pre-releases.
144+
# The legacy behavior doesn't complain about pre-releases being used, falling back to that for now.
145+
# See https://github.com//pull/5071
143146
npm install --unsafe-perm --legacy-peer-deps --omit=dev
144147
fi
145148
;;

0 commit comments

Comments
 (0)