我尝试编曲安装时显示错误

时间:2016-06-11 05:01:43

标签: laravel cmd composer-php


我有一个laravel5.0项目
我想在我的本地系统中运行这个项目 但是当我运行命令到cmd“composer install”
时 那时我的cmd显示以下错误信息

C:\xampp\htdocs\Laravel5>composer install
> php artisan clear-compiled

Warning: require(C:\xampp\htdocs\Laravel5\bootstrap/../vendor/autoload.php): fai
led to open stream: No such file or directory in C:\xampp\htdocs\Laravel5\bootstrap\autoload.php on line 17

Fatal error: require(): Failed opening required 'C:\xampp\htdocs\Laravel5\bootstrap/../vendor/autoload.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htd
ocs\Laravel5\bootstrap\autoload.php on line 17
Script php artisan clear-compiled handling the pre-update-cmd event returned with an error


[RuntimeException]
Error Output:


install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...

1 个答案:

答案 0 :(得分:2)

只需运行此命令

composer update --no-scripts  

它将运行没有任何脚本的composer。