Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Fix Node version compatibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Jun 5, 2019
1 parent 784a8c7 commit 7cdb9bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ module.exports = function (argv, generatorOptions = {}) {
.usage('upgrade <version>')
.usage('generate [type]');

if (!semver.satisfies(process.version, '>= 6.0.0')) {
console.error('The Feathers CLI and generated application requires Node v6.0.0 or later.');
if (!semver.satisfies(process.version, '>= 8.0.0')) {
console.error('The Feathers CLI and generated application requires Node v8.0.0 or later.');
return process.exit(1);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"url": "https://github.com/feathersjs/cli/issues"
},
"engines": {
"node": ">= 6"
"node": ">= 8"
},
"scripts": {
"publish": "git push origin --tags && npm run changelog && git push origin",
Expand Down

0 comments on commit 7cdb9bb

Please sign in to comment.