diff --git a/bin/now.js b/bin/now.js index 5a84119..3d05c97 100755 --- a/bin/now.js +++ b/bin/now.js @@ -1,25 +1,15 @@ #!/usr/bin/env node // Native -const path = require('path'); +const { resolve } = require('path'); // Packages -const nodeVersion = require('node-version'); const updateNotifier = require('update-notifier'); const chalk = require('chalk'); // Ours -const errorHandlers = require('../lib/error'); const pkg = require('../lib/pkg'); -// Throw an error if node version is too low -if (nodeVersion.major < 6) { - errorHandlers.error( - 'Now requires at least version 6 of Node. Please upgrade!' - ); - process.exit(1); -} - if (!process.pkg) { const notifier = updateNotifier({ pkg }); const update = notifier.update; @@ -100,7 +90,7 @@ if (cmd === 'help') { cmd = 'deploy'; } -const bin = path.resolve(__dirname, 'now-' + cmd + '.js'); +const bin = resolve(__dirname, 'now-' + cmd + '.js'); // Prepare process.argv for subcommand process.argv = process.argv.slice(0, 2).concat(args); diff --git a/package.json b/package.json index a73d944..712e977 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,6 @@ "minimist": "1.2.0", "ms": "1.0.0", "node-fetch": "1.6.3", - "node-version": "1.0.0", "opn": "4.0.2", "ora": "1.2.0", "progress": "2.0.0",