mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
Allow node >= 10
This commit is contained in:
parent
3759582ccc
commit
23fdc37b0f
@ -5,9 +5,9 @@ var currentNodeVersion = process.versions.node;
|
||||
var semver = currentNodeVersion.split('.');
|
||||
var major = semver[0];
|
||||
|
||||
if (major != 10) {
|
||||
if (major < 10) {
|
||||
console.error(`You are running Node ${currentNodeVersion}`);
|
||||
console.error('Strapi requires Node 10 only.');
|
||||
console.error('Strapi requires Node 10 or higher.');
|
||||
console.error('Please make sure to use the right version of Node.');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
@ -49,7 +49,7 @@ module.exports = opts => {
|
||||
uuid: uuid,
|
||||
},
|
||||
engines: {
|
||||
node: '^10.0.0',
|
||||
node: '>= 10.0.0',
|
||||
npm: '>= 6.0.0',
|
||||
},
|
||||
license: 'MIT',
|
||||
|
||||
@ -37,7 +37,7 @@ module.exports = scope => {
|
||||
},
|
||||
],
|
||||
engines: {
|
||||
node: '^10.0.0',
|
||||
node: '>= 10.0.0',
|
||||
npm: '>= 6.0.0',
|
||||
},
|
||||
license: scope.license || 'MIT',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user