carbon-react
Version:
A library of reusable React components and an interface for easily building user interfaces based on Flux.
10 lines (8 loc) • 314 B
JavaScript
var exec = require('child_process').exec;
exec("npm -v", function(err, stdout, stderr) {
if (parseFloat(stdout) < 4) {
console.error("Using npm version: " + stdout);
console.error("You need to be using at least npm version 4. To upgrade use `npm install npm@4.6.1 -g`.\n");
process.exit(1);
}
});