()
| 741 | } |
| 742 | |
| 743 | function checkNpmVersion() { |
| 744 | let hasMinNpm = false; |
| 745 | let npmVersion = null; |
| 746 | try { |
| 747 | npmVersion = execSync('npm --version').toString().trim(); |
| 748 | hasMinNpm = semver.gte(npmVersion, '6.0.0'); |
| 749 | } catch (err) { |
| 750 | // ignore |
| 751 | } |
| 752 | return { |
| 753 | hasMinNpm: hasMinNpm, |
| 754 | npmVersion: npmVersion, |
| 755 | }; |
| 756 | } |
| 757 | |
| 758 | function checkYarnVersion() { |
| 759 | const minYarnPnp = '1.12.0'; |