Npm ERR! weird error 8

Hi I’ve just installed FreePBX 12.0.43 and I’m getting the following on module load:

module.js:340
    throw err;
          ^
Error: Cannot find module 'eventemitter2'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/var/www/html/admin/modules/ucpnode/node/node_modules/forever/node_modules/forever-monitor/node_modules/broadway/lib/broadway/app.js:11:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
npm ERR! weird error 8
npm ERR! not ok code 0

Googling this it seems to be related to somthing else sharing port 80.

Running:

# netstat -tulpn | grep :80

reveal the following:

tcp        0      0 0.0.0.0:8088                0.0.0.0:*                   LISTEN      5224/asterisk       
tcp        0      0 :::80                       :::*                        LISTEN      1397/httpd

Anyone have any idea how I fix this?

Port 80 is the normal webserver. Why did you think this has to do with port 80? It has nothing to do with port 80. Uninstall UCP Node and you’ll be fine.