Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strange heroku command error

Tags:

When I run any heroku command or open a page where user is not signed in. This is the only error I'm getting over and over again.

I did remove the Heroku tmp today but I pushed the app fine afterwards, the error suddenly happened.

When i go to the app it opens up if the user is signed in but when opened incognito it has an error, checking the logs it's the same error below

Can anyone help me out on this one?

module.js:491
throw err;

Error: Cannot find module 'universalify'
    at Function.Module._resolveFilename (module.js:489:15)
    at Function.Module._load (module.js:439:25)
    at Module.require (module.js:517:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/ubuntu/.local/share/heroku/client/node_modules/fs-extra/lib/fs/index.js:3:11)
    at Module._compile (module.js:573:30)
    at Object.Module._extensions..js (module.js:584:10)
    at Module.load (module.js:507:32)
    at tryModuleLoad (module.js:470:12)
    at Function.Module._load (module.js:462:3)
module.js:491
    throw err;
    ^

Error: Cannot find module 'universalify'
    at Function.Module._resolveFilename (module.js:489:15)
    at Function.Module._load (module.js:439:25)
    at Module.require (module.js:517:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/ubuntu/.local/share/heroku/client/node_modules/fs-extra/lib/fs/index.js:3:11)
    at Module._compile (module.js:573:30)
    at Object.Module._extensions..js (module.js:584:10)
    at Module.load (module.js:507:32)
    at tryModuleLoad (module.js:470:12)
    at Function.Module._load (module.js:462:3)
 !    error getting commands pid 14405 exit 1
like image 668
Malek Zalfana Avatar asked Sep 09 '17 22:09

Malek Zalfana


1 Answers

Try adding this to package.json and rebuild instanses:

"universalify": "^0.1.1"

or run this command on your server and restart node.js:

npm install universalify --save
like image 120
Valera Checha Avatar answered Sep 30 '22 15:09

Valera Checha