Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Heroku json gem安装失败_Ruby On Rails_Heroku_Rubygems - Fatal编程技术网

Ruby on rails Heroku json gem安装失败

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

我无法将我的应用程序推送到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: 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文件并重试

或者完全移除它,以便从头开始安装所有宝石