【发布时间】:2016-07-30 14:19:13
【问题描述】:
我正在尝试使用 Composer 下载 Laravel HTML 依赖项。
composer.json 在这里:
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"illuminate/html": "5.2"
},
当我运行composer update或php composer update时,终端日志是:
E:\xampp\htdocs\lara-test>composer update
> php artisan clear-compiled
[InvalidArgumentException]
Command "clear-compiled" is not defined.
Script php artisan clear-compiled handling the pre-update-cmd event returned with an error
[RuntimeException]
Error Output:
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock]
[--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-
progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader]
[-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--pre
fer-lowest] [-i|--interactive] [--] [<packages>]...
缺少什么? 请帮忙。
【问题讨论】:
-
试试
composer update --no-scripts -
谢谢,它的工作。但是
--no scripts是什么??
标签: php command composer-php laravel-5.2