Skip to content

Commit 6da5df4

Browse files
ChanningHan韩沅霖
andauthored
perf(cli): delete the EOL_NODE_MAJORS checking (#6102)
Co-authored-by: 韩沅霖 <[email protected]>
1 parent 3b06867 commit 6da5df4

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

packages/@vue/cli/bin/vue.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,6 @@ function checkNodeVersion (wanted, id) {
1919

2020
checkNodeVersion(requiredVersion, '@vue/cli')
2121

22-
const EOL_NODE_MAJORS = ['8.x', '9.x', '11.x', '13.x']
23-
for (const major of EOL_NODE_MAJORS) {
24-
if (semver.satisfies(process.version, major)) {
25-
console.log(chalk.red(
26-
`You are using Node ${process.version}.\n` +
27-
`Node.js ${major} has already reached end-of-life and will not be supported in future major releases.\n` +
28-
`It's strongly recommended to use an active LTS version instead.`
29-
))
30-
}
31-
}
32-
3322
const fs = require('fs')
3423
const path = require('path')
3524
const slash = require('slash')

0 commit comments

Comments
 (0)