Composer installing: the json extension is missing

前端 未结 5 1071
梦毁少年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:45

    You probably need to enable the extension in your php.ini file. To find out where that is for command line PHP, do

    php --ini
    

    You should see a line like

    Loaded Configuration File: /path/to/php.ini

    Open that file and look for extension=json.so. If it's there, uncomment it. If not, add it in. Now you should see json listed when you do php -m and composer should work.

提交回复
热议问题