Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku keys "Cannot read property 'run' of undefined"

I'm trying to use the Heroku cli "keys" functions to upload a ssh key to my account. Unfortunately I run into the following error whenever I try to use any of the keys methods.

TypeError: Cannot read property 'run' of undefined
at Object.<anonymous> (C:\Users\Administrator\AppData\Local\heroku\tmp\heroku-script-292666295:14:4)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
at Function.Module.runMain (module.js:575:10)
at startup (node.js:159:18)
at node.js:444:3

Any thoughts would be greatly appreciated.

like image 789
CBusBus Avatar asked May 05 '16 10:05

CBusBus


2 Answers

After speaking with the Heroku support team we found that heroku update fixed the problem.

like image 53
CBusBus Avatar answered Oct 25 '22 00:10

CBusBus


It seems, Heroku command facing trouble finding right version of ruby so its throwing the error.

Uninstall Heroku Toolbelt through Windows "Control Panel\Programs and Features" after successful uninstallation, delete C:\Program Files\Heroku folder as well.

And then reinstall Heroku Toolbelt and try to run the command. It should work.

like image 43
gtd57 Avatar answered Oct 25 '22 02:10

gtd57