mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
fix: #4588 import syntax on Node 9.x
This commit is contained in:
parent
535b8472b6
commit
278d4b2cbc
@ -30,7 +30,7 @@ var semver = require('semver');
|
||||
/**
|
||||
* Override cluster module configuration
|
||||
*/
|
||||
if (semver.lt(process.version, '9.0.0')) {
|
||||
if (semver.lt(process.version, '10.0.0')) {
|
||||
cluster.setupMaster({
|
||||
windowsHide: true,
|
||||
exec : path.resolve(path.dirname(module.filename), 'ProcessContainerLegacy.js')
|
||||
|
||||
@ -55,7 +55,7 @@ module.exports = function ForkMode(God) {
|
||||
}
|
||||
|
||||
if (interpreter === 'node' || RegExp('node$').test(interpreter)) {
|
||||
if (semver.lt(process.version, '9.0.0')) {
|
||||
if (semver.lt(process.version, '10.0.0')) {
|
||||
args.push(path.resolve(path.dirname(module.filename), '..', 'ProcessContainerForkLegacy.js'));
|
||||
}
|
||||
else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user