diff --git a/lib/Utility.js b/lib/Utility.js index a0617db68..71f65b03c 100644 --- a/lib/Utility.js +++ b/lib/Utility.js @@ -223,7 +223,7 @@ var Utility = module.exports = { //pm2 install username/module else if(canonic_module_name.indexOf('/') !== -1) { - if (!canonic_module_name.startsWith("@")){ + if (canonic_module_name.charAt(0) !== "@"){ canonic_module_name = canonic_module_name.split('/')[1]; } }