perf(cli): delete the EOL_NODE_MAJORS checking (#6102)

Co-authored-by: 韩沅霖 <hanyuanlin@dm-ai.cn>
This commit is contained in:
Channing
2020-12-02 09:33:59 +08:00
committed by GitHub
parent 3b068678cb
commit 6da5df44e0

View File

@@ -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')