Search code examples
herokuheroku-toolbelt

Cannot find module 'heroku-run'


Tried to run heroku logs to check an error, got this:

$ heroku run rake db:migrate
 !   Error in heroku-run:
 !   Cannot find module 'heroku-run'
 !   See ~/.heroku/error.log for more info.

Now every time I run a heroku command I get that message. Tried updating heroku, no change. Tried installing heroku-run, not a gem. Checked the error log and it just says the same thing:

2016/04/09 22:51:45 Error: Cannot find module 'heroku-run'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/tmp/heroku-script-021789235:34:14)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)

Solution

  • I believe there was an issue with the heroku-toolbelt client for osx, run heroku update to get a fixed version.