Browse Source

fix(core): Relax engines check for Yarn

A transitive dependency (get-caller-file) omits Node v9 from the "engines" field in package.json. This causes Yarn to error when installing with "Found incompatible module". We explicitly say we support Node v8.9.0+, so should not error on v9.x. There is no specific (breaking) reason that this package does not support v9, see: https://github.com/stefanpenner/get-caller-file/commit/96c6a94c8cbe251135596784bdf8a86e40c713ee
Michael Bromley 6 years ago
parent
commit
9c4f8fb0b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/create/src/helpers.ts

+ 1 - 1
packages/create/src/helpers.ts

@@ -177,7 +177,7 @@ export function installPackages(root: string, useYarn: boolean, dependencies: st
         let args: string[];
         if (useYarn) {
             command = 'yarnpkg';
-            args = ['add', '--exact'];
+            args = ['add', '--exact', '--ignore-engines'];
             if (isDev) {
                 args.push('--dev');
             }