Middleman error – `block in replace_gem’: middleman-cli is not part of the bundle. Add it to Gemfile.

I ran into an error while trying to start a newly-created Middleman project: `block in replace_gem’: middleman-cli is not part of the bundle. I was able to address this and a subsequent error by adding 2 Ruby gems to the project’s Gemfile.