我试图在Windows 10上使用MAMP安装Composer。我已经完成了其他答案的建议,例如取消注释并在php.ini中添加内容,但是在输入第一行之后仍然出现以下错误。命令行安装
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
出现的错误是:
Warning: copy(): Unable to find the wrapper "https" - did you forget to enable it
when you configured PHP? in Command line code on line 1
Warning: copy(): Unable to find the wrapper "https" - did you forget to enable it
when you configured PHP? in Command line code on line 1
Warning: copy(https://getcomposer.org/installer): failed to open stream: No such file or
directory in Command line code on line 1
我以前有一个命令行问题,无法识别PHP,但是可以通过将php.exe添加到环境变量的路径中来解决。我还应该注意,我已经安装了Composer,并且以前运行良好,但是在重新安装MAMP之后这些问题开始出现。我确实删除了ProgramData中以前的composer文件夹。
任何帮助将不胜感激!