Skip to content

Commit

Permalink
Adds more information when the binary is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanis committed Jun 21, 2019
1 parent 7faa0ec commit 51d0f7e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/warn-about-yarn1.js
@@ -1,5 +1,10 @@
#!/usr/bin/env node

console.log("Your global Yarn binary isn't recent enough; please upgrade to 1.17.2 or higher.");
const {execSync} = require(`child_process`);

console.log(`Your global Yarn binary isn't recent enough; please upgrade to 1.17.2 or higher.`);
console.log(``);
console.log(`Binary: ${execSync(`which yarn`).toString().trim()}`);
console.log(`Version: ${execSync(`yarn --version`).toString().trim()}`);

process.exitCode = 1;

0 comments on commit 51d0f7e

Please sign in to comment.