composer無法安裝 laravel的 vendor目錄

composer安裝laravel異常:[Symfony Component Process Exception RuntimeException] The Process class relies on proc_open, which is not available on your PHP installation
上述報錯會導致vendor文件夾及其內容無法生成

解決方法:
打開php.ini,並搜索disable_functions指令,找到類似如下內容:
disable_functions = passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_get_status,popen,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server

找到proc_open並刪除即可。
重新使用composer安裝laravel;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章