Heroku command not found

前端 未结 12 1059
北海茫月
北海茫月 2021-02-01 03:06

After installing Heroku Toolbelt, in terminal on Mac when trying to run the following command:

heroku

I get the error:

bash: he         


        
12条回答
  •  花落未央
    2021-02-01 03:57

    when you install heroku in linux as per the documentation using

    sudo snap install heroku --classic
    

    it will install heroku inside /snap/bin/heroku but when you type the command in terminal it will look into /usr/bin/ directory, a simple solution is to create a symlink by

    sudo ln -s  /snap/bin/heroku /usr/bin/heroku
    

    after that you can just run the heroku command in terminal.

提交回复
热议问题