• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Error when trying to start with PM2

Scheduled Pinned Locked Moved Bug Hunt
2 Posts 1 Posters 1.6k Views 1 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    A Former User
    last edited by May 1, 2018, 3:58 AM

    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)
    
    
    1 Reply Last reply Reply Quote 0
    • ? Offline
      A Former User
      last edited by May 1, 2018, 4:08 AM

      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)
      
      
      1 Reply Last reply Reply Quote 0
      • 1 / 1
      1 / 1
      • First post
        1/2
        Last post
      Enjoying MagicMirror? Please consider a donation!
      MagicMirror created by Michael Teeuw.
      Forum managed by Sam, technical setup by Karsten.
      This forum is using NodeBB as its core | Contributors
      Contact | Privacy Policy