UNPKG

deployment-tools

Version:

A Node.js scripts that helps you to compile and deploy the static assets (CSS/JavaScript/images) of your website without gulp and grunt using Node.js and npm scripts

11 lines (10 loc) 285 B
'use strict'; /* eslint-disable */ var exec = require('child_process').exec; exec('npm -v', function (err, stdout, stderr) { if (err) throw err; if (parseFloat(stdout) < 3) { throw new Error('[ERROR: React Boilerplate] You need npm version @>=3'); process.exit(1); } });