Can't install heroku-cli. Path missing [SOLVED]


Hi, I’ve been stuck on installing heroku for a few hours now, and i can’t find a way to make it work.

When I run the command on terminal : curl | sh I get this : Your path is missing /usr/local/bin, you need to add this to use this installer.

I tried to verify if the path is actually missing, and by running ‘echo $PATH’ it seems that it’s not the case. Here’s what I get. /home/rasklow/.rbenv/shims:/home/rasklow/.rbenv/bin:/home/rasklow/.rbenv/shims:/home/rasklow/.rbenv/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/snap/bin:/usr/local/bin.

I also tried to install heroku directly from the tar.gz file on heroku site, but since i’m fairly new to linux I don’t really know how to do that.


Edit : solved the problem by installing the snap based install, since snap/bin is in my path already. sudo snap install --classic heroku


what linux distro do you use ?


I use Solus