试图通过composer失败程序安装Symfony2。这似乎是一个访问权问题:
cmd:composer create-project symfony/framework-standard-edition/Users/anthonydiniro/WWW/win4u2.com
结果:安装symfony/framework-standard-edition (v2.5.0)-安装symfony/framework-standard-edition (v2.5.0)下载:100%
[ErrorException]
copy(/Users/anthonydiniro/.composer/cache/files/symfony/framework-standard-edition/96cf36b581c9cd4827fe8c973080a6db085a49b6.zip):打开流失败:P
权限被拒绝
Thanks for help
与往常一样,如果遇到错误,首先要尝试的是运行
php composer.phar self-update
这将确保最新的composer
二进制文件。然后,再次运行安装;)
先试试jperovic说的!
否则尝试sudo composer create-project symfony/framework-standard-edition /Users/anthonydiniro/WWW/win4u2.com
如果不工作尝试sudo chmod 777 -R /Users/anthonydiniro/.composer/cache/