Skip to content

Commit 5b4b389

Browse files
committed
Use corepack to enable yarn in common_startup.sh
1 parent dac1a65 commit 5b4b389

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/common_startup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ if [ $SKIP_CLIENT_BUILD -eq 0 ]; then
238238
echo "Installing yarn into '$CONDA_DEFAULT_ENV' Conda environment with conda."
239239
$CONDA_EXE install --yes --override-channels --channel conda-forge --name "$CONDA_DEFAULT_ENV" 'yarn<2'
240240
elif [ -n "$VIRTUAL_ENV" ] && in_venv "$(command -v npm)"; then
241-
echo "Installing yarn into $VIRTUAL_ENV with npm."
242-
npm install --global yarn
241+
echo "Installing yarn into $VIRTUAL_ENV with corepack."
242+
corepack enable yarn
243243
else
244244
echo "Installing yarn locally with npm."
245245
npm install yarn

0 commit comments

Comments
 (0)