Gemfile.lock`. It is likely that you need to grant write permissions for that path.
By Kristina Moore at May 07 2020