From 3a582b42f9cca57779b99964c95a2cd0516efa11 Mon Sep 17 00:00:00 2001 From: Unitech Date: Tue, 10 Jul 2018 11:54:26 +0200 Subject: [PATCH] fix: #3764 --- lib/API/Extra.js | 2 +- lib/God/ActionMethods.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/API/Extra.js b/lib/API/Extra.js index bca1da253..ef38317fe 100644 --- a/lib/API/Extra.js +++ b/lib/API/Extra.js @@ -63,7 +63,7 @@ module.exports = function(CLI) { fmt.title(chalk.bold.blue('CLI')); fmt.field('local pm2', pkg.version); fmt.field('node version', process.versions.node); - fmt.field('node path', process.env['_']); + fmt.field('node path', process.env['_'] || 'not found'); fmt.field('argv', process.argv); fmt.field('argv0', process.argv0); fmt.field('user', process.env.USER || process.env.LNAME || process.env.USERNAME); diff --git a/lib/God/ActionMethods.js b/lib/God/ActionMethods.js index 832388327..102fc419f 100644 --- a/lib/God/ActionMethods.js +++ b/lib/God/ActionMethods.js @@ -835,7 +835,7 @@ module.exports = function(God) { var report = { pm2_version : pkg.version, node_version : 'N/A', - node_path : process.env['_'], + node_path : process.env['_'] || 'not found', argv0 : process.argv0, argv : process.argv, user : process.env.USER,