【发布时间】:2014-01-17 09:41:27
【问题描述】:
问题:
我已安装 Composer 并按照 Laravel 4 documentation 中的快速入门指南进行操作。
运行composer install 或composer update 时出现以下错误:
Script php artisan optimize handling the post-install-cmd event
returned with an error...
我尝试运行以下composer 命令:
composer create-project laravel/laravel myproject --prefer-dist
或者使用他们的laravel.phar:
laravel new myproject
或从 git 获取 zip 版本:https://github.com/laravel/laravel?source=c
我仍然无法通过 composer 更新。
附加信息:
我的 Mac 上的 PHP 版本是:
PHP 5.4.17 (cli) (built: Aug 25 2013 02:03:38)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0,
Copyright (c) 1998-2013 Zend Technologies
MAMP 上的 PHP 版本:5.4.10
我在 Google / Stack Overflow 上找到了一些解决方案,但在我的情况下效果不佳。
【问题讨论】:
标签: php laravel installation laravel-4