Archived
1
0

fix(npm): use correct flags and update version for npm (#5533)

* fix: update npm-postinstall.sh script

Add --legacy-peer-deps to deal with weird npm issue with vscode
dependencies.

See: https://stackoverflow.com/a/66620869/3015595

* fix: use npm in release-standalone

* chore: update package.json

* chore: bump plugin engine for tests
This commit is contained in:
Joe Previte
2022-09-06 11:03:27 -07:00
committed by GitHub
parent 6742e945cc
commit da03a648c2
4 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ main() {
ln -s "./lib/node" "$RELEASE_PATH/node"
pushd "$RELEASE_PATH"
yarn --production --frozen-lockfile
npm install --unsafe-perm --omit=dev
popd
}

View File

@ -140,7 +140,7 @@ install_with_yarn_or_npm() {
echo "yarn.lock file present, running in development mode. use yarn to install code-server!"
exit 1
else
npm install --omit=dev
npm install --unsafe-perm --legacy-peer-deps --omit=dev
fi
;;
*)