How to Solve Could not find gem 'fastlane' in locally installed gems

Solution 1: install the 'fastlane' gem 

To install rmagick with gem, Run the following command.

gem install fastlane

Solution 1: install missing gems

To install missing gems, Run the following command.

bundle install

 

For more information:
fastlane Documentation