Skip to content

Commit

Permalink
fix(cli): Allow prereleases on node version check (#4469)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Apr 22, 2021
1 parent e5b53aa commit dd26a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/bin/capacitor
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var satisfies = require('semver/functions/satisfies');
var packageJson = require('../package.json');
var requiresNodeVersion = packageJson.engines.node;

if (!satisfies(process.version, requiresNodeVersion)) {
if (!satisfies(process.version, requiresNodeVersion, { includePrerelease: true})) {
process.stdout.write(
'\x1b[31m[fatal]\x1b[39m The Capacitor CLI requires NodeJS ' + requiresNodeVersion + '\n' +
' Please install the latest LTS version.\n'
Expand Down

0 comments on commit dd26a98

Please sign in to comment.