Hi,
I am trying to using heroku cli and when I type heroku it get stuck at node.
Please let me know how can I solve the issue.
Regards,
RPSadarangani
I'm getting this error whenever I run any command:
heroku --version
â–¸ yarn install --force --non-interactive
â–¸ --mutex=file:/Users/../Library/Caches/heroku/yarn
▸ --cache-folder=/Users/…/Library/Caches/heroku/yarn exited with code 1
â–¸ warning No license field
▸ error /Users/…/.local/share/heroku/plugins/node_modules/snappy: Command
â–¸ failed.
â–¸ Exit code: 7
â–¸ Command: sh
â–¸ Arguments: -c ./node_modules/.bin/node-gyp rebuild
▸ Directory: /Users/…/.local/share/heroku/plugins/node_modules/snappy
â–¸ Output:
â–¸ gyp info it worked if it ends with ok
â–¸ gyp info using [email protected]
â–¸ gyp info using [email protected] | darwin | x64
â–¸ gyp ERR! UNCAUGHT EXCEPTION
â–¸ gyp ERR! stack TypeError: Cannot read property 'length' of undefined
â–¸ gyp ERR! stack at parse
▸ (/Users/…/.local/share/heroku/plugins/node_modules/semver/semver.js:239:14)
â–¸ gyp ERR! stack at Function.valid
▸ (/Users/…/.local/share/heroku/plugins/node_modules/semver/semver.js:255:11)
â–¸ gyp ERR! stack at processRelease
▸ (/Users/…/.local/share/heroku/plugins/node_modules/node-gyp/lib/process-release.js:16:25)
â–¸ gyp ERR! stack at configure
▸ (/Users/…/.local/share/heroku/plugins/node_modules/node-gyp/lib/configure.js:35:17)
â–¸ gyp ERR! stack at Object.self.commands.(anonymous function) [as
â–¸ configure]
▸ (/Users/…/.local/share/heroku/plugins/node_modules/node-gyp/lib/node-gyp.js:66:37)
â–¸ gyp ERR! stack at run
▸ (/Users/…/.local/share/heroku/plugins/node_modules/node-gyp/bin/node-gyp.js:72:30)
â–¸ gyp ERR! stack at _combinedTickCallback
â–¸ (internal/process/next_tick.js:73:7)
â–¸ gyp ERR! stack at process._tickCallback
â–¸ (internal/process/next_tick.js:104:9)
â–¸ gyp ERR! System Darwin 15.6.0
â–¸ gyp ERR! command "/Users/jay/.local/share/heroku/client/bin/node"
▸ "/Users/…/.local/share/heroku/plugins/node_modules/snappy/node_modules/.bin/node-gyp"
â–¸ "rebuild"
▸ gyp ERR! cwd /Users/…/.local/share/heroku/plugins/node_modules/snappy
â–¸ gyp ERR! node -v v7.10.0
â–¸ gyp ERR! node-gyp -v v3.4.0
â–¸ gyp ERR! This is a bug in `node-gyp`.
â–¸ gyp ERR! Try to update node-gyp and file an Issue if it does not help:
â–¸ gyp ERR! <https://github.com/nodejs/node-gyp/issues>
â–¸
I was able to resolve my issue by clearing out the ~/.local/share/heroku/client folder
@jarell-lloyd yes. it works, by why does it happen ?
Where do we find this folder in macos?
which heroku gives
/usr/local/bin/heroku
_For Mac OS High Sierra_
I had to delete everything in ~/.local/share/heroku/client and yarn.lock file in ~/.local/share/heroku/plugins
Most helpful comment
I was able to resolve my issue by clearing out the
~/.local/share/heroku/clientfolder