Cloud IDE: Heroku couldn't be installed in the Ruby on Rails tutorial

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)

environment

・ AWS, Cloud9 integrated environment (cloud integrated environment)

Coping

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. image.pngimage.png 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

Cloud IDE: Heroku couldn't be installed in the Ruby on Rails tutorial
[Ruby on Rails Tutorial] Error in the test in Chapter 3
Things to remember and concepts in the Ruby on Rails tutorial
[Cloud9] Yay! You ’re on Rails! Is not displayed in the rails tutorial
[Ruby On Rails] How to reset DB in Heroku
[Ruby on rails] When executing the heroku command, bash: heroku: command not found is displayed. [Rails tutorial]
[Ruby on Rails] Quickly display the page title in the browser
Created the first LINEbot on AWS Cloud9 (Rails + Heroku deployment)
Ruby on Rails 5 quick learning practice guide that can be used in the field Summary
Ruby on Rails Japanese-English support i18n
What to do if Cloud9 is full in the Rails tutorial
I summarized the flow until implementing simple_calendar in Ruby on Rails.
[For beginners] Build the environment for Ruby on Rails Tutorial 4th Edition (Rails 5.1) in less than an hour!
part of the syntax of ruby ​​on rails
Rails server cannot be started in Cloud9
Beginners create portfolio in Ruby on Rails
"" Application.js "is not present in the asset pipeline" error in Ruby on Rails
How to debug the processing in the Ruby on Rails model only on the console
[Ruby On Rails] In the create action and destroy action, emergency measures when redirect_to action:: show cannot be (cannot be used)
[Ruby on Rails] Solving the addiction when setting crontab using whenever in EC2
[Ruby on Rails] Until the introduction of RSpec
When the Ruby on Rails terminal rolls back
Publish the app made with ruby on rails
How to resolve errors that occur in the "Ruby on Rails" integration test
[Ruby on Rails] Rails tutorial Chapter 14 Summary of how to implement the status feed
Rails new in Ruby on Rails ~ Memorandum until deployment 2
Rails new in Ruby on Rails ~ Memorandum until deployment 1
(Ruby on Rails6) Creating data in a table
Determine the current page with Ruby on Rails
[Ruby on Rails] How to install Bootstrap in Rails
[Ruby On Rails] In the nested state, the description in parentheses written after Prefix in the link_to method
[Ruby on Rails] How to write enum in Japanese
Build a Ruby on Rails development environment on AWS Cloud9
Docker the development environment of Ruby on Rails project
[Ruby on Rails] How to change the column name
Regarding overcapacity when setting Rails tutorial environment in Cloud 9
[Ruby / Rails] Set a unique (unique) value in the class
[Ruby on Rails] Post image preview function in refile
Solve the N + 1 problem with Ruby on Rails: acts-as-taggable-on
Ruby on Rails Tutorial Troublesome notes when running on Windows
(Ruby on Rails6) Reflecting the posted content from the form
Try using the query attribute of Ruby on Rails
Ruby on Rails basics
Ruby On Rails Association
Ruby, Rails finally installed
[Ruby on Rails] I want to get the URL of the image saved in Active Storage
[Rails] Settings for loading web fonts in CloudFront on Heroku
Difficulties in building a Ruby on Rails environment (Windows 10) (SQLite3)
Definitely useful! Debug code for development in Ruby on Rails
[Environment construction] Get the Ruby on Rails 6 development environment within 1 hour
A note about the seed function of Ruby on Rails
[Ruby on Rails] Automatically enter the address from the zip code
[Apple login] Sign in with Apple implementation procedure (Ruby on Rails)
[Note] About the Fizz_Buzz problem (How Ruby on Rails works)
[Rails] Where to be careful in the description of validation
Apply CSS to a specific View in Ruby on Rails
Ruby on rails learning record -2020.10.03
Ruby on rails learning record -2020.10.04
[Ruby on Rails] Debug (binding.pry)
Ruby on rails learning record -2020.10.05
Ruby on rails learning record -2020.10.09