diff --git a/lib/CLI.js b/lib/CLI.js index a607470f..e0b43f40 100644 --- a/lib/CLI.js +++ b/lib/CLI.js @@ -169,7 +169,7 @@ CLI.startup = function(platform) { console.error(cst.PREFIX_MSG + 'You have to run this command as root'); console.error(cst.PREFIX_MSG + 'Execute the following command :'); if (platform === undefined) platform = ''; - console.error(cst.PREFIX_MSG + 'sudo env PATH=$PATH:' + p.dirname(process.execPath) + ' pm2 startup ' + platform + '-u ' + stdout.trim()); + console.error(cst.PREFIX_MSG + 'sudo env PATH=$PATH:' + p.dirname(process.execPath) + ' pm2 startup ' + platform + ' -u ' + stdout.trim()); process.exit(cst.ERROR_EXIT); }); return;