Skip to content

Commit f33a8b7

Browse files
committed
1 parent 1f040a1 commit f33a8b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build/npm/preinstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if (major < 8) {
1212
err = true;
1313
}
1414

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

0 commit comments

Comments
 (0)