无法在Mac(Yosemite)上安装Composer

易酶
localhost:1nbox myusername$ sudo curl -s http://getcomposer.org/installer | phpmamp
#!/usr/bin/env php
All settings correct for using Composer
PHP Fatal error:  Uncaught exception 'RuntimeException' with message 'Unable to write bundled cacert.pem to: /Users/myusername/.composer/cacert.pem' in -:403
Stack trace:
#0 -(112): installComposer(false, false, 'composer.phar', false, false, false)
#1 -(14): process(Array)
#2 {main}
  thrown in - on line 403
localhost:1nbox myusername$ 

.bash_profile有:

alias phpmamp='/Applications/MAMP/bin/php/php5.6.2/bin/php'
易酶

如上面的@TotalWipeOut所示,此命令有效:

curl -s http://getcomposer.org/installer | sudo /Applications/MAMP/bin/php/php5.6.2/bin/php

我能够使用MAMP PHP成功安装composer。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章