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.
After speaking with the Heroku support team we found that heroku update
fixed the problem.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With