In the Ruby on Rails tutorial, when I tried to install Heroku, I got the following error and did not proceed.
I didn't know what was wrong when I looked it up (゜ ∀ ゜).
bash: /home/ec2-user/.profile: Permission denied
The execution command is as follows described in the tutorial.
source <(curl -sL https://cdn.learnenough.com/heroku_install)
・ AWS, Cloud9 integrated environment (cloud integrated environment)
I couldn't find any solution even if I googled it. \ (^ O ^) /.
It seems that Heroku CLI will be installed, so I checked how to install Heroku CLI. I checked if the written command could be installed with a command other than the tutorial. https://devcenter.heroku.com/articles/heroku-cli
It says at the bottom that you can also install using the npm command. Looking at the installation notes, it seems that the installation method is based on the assumption that "npm" and "node" are included.
This installation method is required for users on ARM and BSD. You must have node and npm installed already.
npm install -g heroku
That's why I checked if it was in the cloud IDE. It seems that both are included, so I was able to install it using the command described in the original. If you get stuck, try this method once. (I don't know if it will be useful)
Recommended Posts