Skip to content

Commit d86b9d4

Browse files
authored
chore: add deprecation warning for Node.js 9.x (#3202)
* chore: add deprecation warning for Node.js 9.x * chore: upgrade -> use an active LTS version
1 parent 0ecbb70 commit d86b9d4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

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

2020
checkNodeVersion(requiredVersion, 'vue-cli')
2121

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

0 commit comments

Comments
 (0)