shierro/territory-manager

View on GitHub
internals/scripts/npmcheckversion.js

Summary

Maintainability
A
0 mins
Test Coverage
const 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);
  }
});