mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-23 23:59:02 -06:00
perf(cli): delete the EOL_NODE_MAJORS checking (#6102)
Co-authored-by: 韩沅霖 <hanyuanlin@dm-ai.cn>
This commit is contained in:
@@ -19,17 +19,6 @@ function checkNodeVersion (wanted, id) {
|
||||
|
||||
checkNodeVersion(requiredVersion, '@vue/cli')
|
||||
|
||||
const EOL_NODE_MAJORS = ['8.x', '9.x', '11.x', '13.x']
|
||||
for (const major of EOL_NODE_MAJORS) {
|
||||
if (semver.satisfies(process.version, major)) {
|
||||
console.log(chalk.red(
|
||||
`You are using Node ${process.version}.\n` +
|
||||
`Node.js ${major} has already reached end-of-life and will not be supported in future major releases.\n` +
|
||||
`It's strongly recommended to use an active LTS version instead.`
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const slash = require('slash')
|
||||
|
||||
Reference in New Issue
Block a user