Strange heroku team error

When I run any heroku command or open a page that the user is not subscribed to. This is the only mistake I get over and over again.

Today I deleted Heroku tmp, but after that I pushed the application, an error occurred unexpectedly.

When I go to the application, it opens if the user has logged in, but when opening incognito he has an error, checking the logs with the same error below

Can anyone help me on this?

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 
+5
source share
3 answers

Try adding this to package.json and rebuilding the instanses:

 "universalify": "^0.1.1" 

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

 npm install universalify --save 
+2
source

I advise you to run them on your terminal in your CWD file preoject npm uninstall universalify -S --save , which should remove any form of universalify that probably had some missing dependencies during your npm install , after which you can run npm install universalify --save .

Feel free to comment if you encounter any additional problem.

+1
source

I also had this error the last time I was still running my project on node. So what I did. Install every npm that is missing, something like this

npm install universalify --save

If it still persists. Delete the universalization folder and reinstall npm :). And do not forget to remove it on your package.json

0
source

Source: https://habr.com/ru/post/1271668/


All Articles