Composer installing: the json extension is missing

前端 未结 5 1105
梦毁少年i
梦毁少年i 2021-01-18 03:43

I wrote in Linux Terminal: curl -s https://getcomposer.org/installer | php It said:

 #!/usr/bin/env php
Some settings on your machine make Com         


        
5条回答
  •  没有蜡笔的小新
    2021-01-18 04:47

    I encountered the same error, but the difference was that when I ran php -m the json module was not listed, so I just installed json PHP module using the command below:

    sudo yum install php-json
    

    the error was fixed and I was able to install composer. I was using CentOS 8 stream, PHP7.2.

提交回复
热议问题