Skip to content

Commit

Permalink
'Please use yarn to install dependencies.' when using yarn. Fixes #93119
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Mar 21, 2020
1 parent 88b1952 commit 5712574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/npm/preinstall.js
Expand Up @@ -23,7 +23,7 @@ if (majorYarnVersion < 1 || minorYarnVersion < 10) {
err = true;
}

if (!/yarn\.js$|yarnpkg$/.test(process.env['npm_execpath'])) {
if (!/yarn[\w-.]*\.js$|yarnpkg$/.test(process.env['npm_execpath'])) {
console.error('\033[1;31m*** Please use yarn to install dependencies.\033[0;0m');
err = true;
}
Expand Down

0 comments on commit 5712574

Please sign in to comment.