Skip to content

Commit f721894

Browse files
authored
chore: add Yarn v1 allow-scripts in update script (#1815)
1 parent ea66a8c commit f721894

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/update-cypress-latest-yarn.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ cd examples
2525
# Yarn 1 Classic section
2626
# No corepack
2727
corepack disable yarn
28-
npm install yarn@1 -g
28+
npm install yarn@1 --global --allow-scripts=yarn
2929
echo yarn version $(yarn --version) is installed
3030

3131
# examples/start-and-yarn-workspaces (yarn)
@@ -81,7 +81,7 @@ cd ..
8181
echo
8282
corepack disable yarn
8383
echo corepack is now disabled for Yarn
84-
npm install yarn@1 -g
84+
npm install yarn@1 --global --allow-scripts=yarn
8585
echo yarn version $(yarn --version) is installed
8686
echo
8787
# End of Yarn 4 Modern section

0 commit comments

Comments
 (0)