When trying to use the command heroku create, I get an error that says "Cannot read property 'loadSync' of undefined. I have tried re-installing the node-modules, as well as updating heroku. I'm running node v. 8.9.4 npm 5.6.0. I have also found _similar_ errors but not specifically the issue I'm having, which is 'loadSync'.
$ heroku create
TypeError: Cannot read property 'loadSync' of undefined
at Object.token (C:/Program Files/Heroku/client/node_modules/heroku-cli-util/lib/auth.js:199:9)
at run (C:/Program Files/Heroku/client/node_modules/heroku-cli-util/lib/command.js:156:38)
at Object.run (C:/Program Files/Heroku/client/node_modules/heroku-cli-util/lib/command.js:169:12)
at V5.run (C:/Program Files/Heroku/client/node_modules/@oclif/plugin-legacy/lib/index.js:118:26)
at V5._run (C:/Program Files/Heroku/client/node_modules/@oclif/command/lib/command.js:29:31)
What is your heroku version? Did you install via npm or our Windows installer?
@RasPhilCo No worries, I fixed it. Had to uninstall heroku and then re-install. I re-installed with the npm installer. Everything works fine now!
by the way, this problem sometimes occurs if at first you install the heroku and then install node/npm(or not installed).
problem concerns when command heroku config:set DISABLE_COLLECTSTATIC=1 raise the error
Most helpful comment
@RasPhilCo No worries, I fixed it. Had to uninstall heroku and then re-install. I re-installed with the npm installer. Everything works fine now!