mirror of
https://github.com/strapi/strapi.git
synced 2025-07-28 19:34:51 +00:00

As a result of taking a look on PR #1967 I realized there is 819 executable files in this repository. It is obvious this is an error.
10 lines
267 B
JavaScript
10 lines
267 B
JavaScript
/* 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: Strapi plugin] You need npm version @>=3');
|
|
process.exit(1);
|
|
}
|
|
});
|