diff --git a/packages/@vue/cli-service/package.json b/packages/@vue/cli-service/package.json index 1677678a13..a086b86e69 100644 --- a/packages/@vue/cli-service/package.json +++ b/packages/@vue/cli-service/package.json @@ -122,6 +122,6 @@ "access": "public" }, "engines": { - "node": ">=8" + "node": "^10.12.0 || ^12.0.0 || >= 14.0.0" } } diff --git a/packages/@vue/cli-ui/package.json b/packages/@vue/cli-ui/package.json index 39ca353a9d..8e3e26f5a7 100644 --- a/packages/@vue/cli-ui/package.json +++ b/packages/@vue/cli-ui/package.json @@ -114,7 +114,7 @@ "license": "MIT", "author": "Guillaume Chau", "engines": { - "node": ">=8" + "node": "^10.12.0 || ^12.0.0 || >= 14.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/@vue/cli/lib/Creator.js b/packages/@vue/cli/lib/Creator.js index 1cbe1c1219..b2bfefaaf3 100644 --- a/packages/@vue/cli/lib/Creator.js +++ b/packages/@vue/cli/lib/Creator.js @@ -28,7 +28,6 @@ const { const { chalk, execa, - semver, log, warn, @@ -186,15 +185,6 @@ module.exports = class Creator extends EventEmitter { }) } - if (packageManager === 'yarn' && semver.satisfies(process.version, '8.x')) { - // Vue CLI 4.x should support Node 8.x, - // but some dependenices already bumped `engines` field to Node 10 - // and Yarn treats `engines` field too strictly - await writeFileTree(context, { - '.yarnrc': '# Hotfix for Node 8.x\n--install.ignore-engines true\n' - }) - } - // intilaize git repository before installing deps // so that vue-cli-service can setup git hooks. const shouldInitGit = this.shouldInitGit(cliOptions) diff --git a/packages/@vue/cli/package.json b/packages/@vue/cli/package.json index 5e18ac0bbe..c6a6423f0c 100644 --- a/packages/@vue/cli/package.json +++ b/packages/@vue/cli/package.json @@ -62,6 +62,6 @@ "yaml-front-matter": "^3.4.1" }, "engines": { - "node": ">=8.9" + "node": "^10.12.0 || ^12.0.0 || >= 14.0.0" } }