Ruby on rails Heroku json gem安装失败
我无法将我的应用程序推送到heroku,运行时出现以下错误Ruby on rails Heroku json gem安装失败,ruby-on-rails,heroku,rubygems,Ruby On Rails,Heroku,Rubygems,我无法将我的应用程序推送到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时 gem install json -v '1.8.3' Fetching: js
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时
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文件并重试 或者完全移除它,以便从头开始安装所有宝石