MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

Error when trying to start with PM2



  • Hi,

    Just installed MM2 with PM2 and I can’t start it with PM2. I Get the following error.

    /usr/lib/node_modules/pm2/node_modules/semver/semver.js:141
    var XRANGEPLAIN = R/;;
                        ^
    
    SyntaxError: Unexpected token ;
        at new Script (vm.js:51:7)
        at createScript (vm.js:136:10)
        at Object.runInThisContext (vm.js:197:10)
        at Module._compile (internal/modules/cjs/loader.js:618:28)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
        at Module.load (internal/modules/cjs/loader.js:566:32)
        at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
        at Function.Module._load (internal/modules/cjs/loader.js:498:3)
        at Module.require (internal/modules/cjs/loader.js:598:17)
        at require (internal/modules/cjs/helpers.js:11:18)
    
    


  • I just tried to run serveronly mode and get this error.

    pi@raspberrypi:~/MagicMirror $ node serveronly
    /home/pi/MagicMirror/node_modules/escape-html/index.js:14
    Var ma�chHtmlRegExp = /[#'&<>]/;
        ^^
    
    SyntaxError: Unexpected identifier
        at new Script (vm.js:51:7)
        at createScript (vm.js:136:10)
        at Object.runInThisContext (vm.js:197:10)
        at Module._compile (internal/modules/cjs/loader.js:618:28)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
        at Module.load (internal/modules/cjs/loader.js:566:32)
        at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
        at Function.Module._load (internal/modules/cjs/loader.js:498:3)
        at Module.require (internal/modules/cjs/loader.js:598:17)
        at require (internal/modules/cjs/helpers.js:11:18)