Heroku json gem 安装失败

Heroku json gem install fails

我无法将我的应用程序推送到 heroku,当我 运行 我收到以下错误

   An error occurred while installing json (1.8.3), and Bundler cannot continue.
   Make sure that `gem install json -v '1.8.3'` succeeds before bundling.

我也无法手动安装 gem 因为当我这样做时

gem install json -v '1.8.3'

Fetching: json-1.8.3.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /var/lib/gems/2.3.0 directory.

我无法在 Heroku

上访问 sudo

我该怎么办?

更新 Gemlock 文件并重试...!

或者完全删除它,以便它可以从头开始安装所有 gem