我正在尝试使用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
,请勿运行脚本。 - Drudge Rajen--no scripts
是什么意思? - Jitendra