Cli: TypeError: Cannot read property 'loadSync' of undefined when running heroku create

Created on 20 Aug 2018  路  3Comments  路  Source: heroku/cli

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)

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!

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DennisTsiang picture DennisTsiang  路  7Comments

JBallin picture JBallin  路  6Comments

noenthu picture noenthu  路  7Comments

ValentinTrinque picture ValentinTrinque  路  3Comments

sdalezman picture sdalezman  路  4Comments