2019-01-28 16:23:47 +01:00

10 lines
284 B
JavaScript

/* eslint-disable */
var shell = require('shelljs');
shell.exec('npm -v', {silent: true}, function (code, stdout, stderr) {
if (code) throw stderr;
if (parseFloat(stdout) < 3) {
throw new Error('[ERROR: Strapi plugin] You need npm version @>=3');
process.exit(1);
}
});