【问题标题】:Issue with composer install/update作曲家安装/更新问题
【发布时间】:2013-12-14 20:30:54
【问题描述】:

我正在处理一个使用 Laravel 4 框架制作的项目,然后我使用此命令安装了 composer。

作曲家安装

这是执行结果:

$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing psr/log (dev-master 5144da9)
    Loading from cache

  - Installing doctrine/lexer (dev-master 57d5a02)
    Loading from cache

  - Installing doctrine/annotations (dev-master 97b4a00)
    Loading from cache

  - Installing doctrine/collections (dev-master bcb5377)
    Loading from cache

  - Installing doctrine/cache (dev-master ff36d42)
    Loading from cache

  - Installing doctrine/inflector (dev-master 8b4b3cc)
    Loading from cache

  - Installing doctrine/common (dev-master ba2ad8a)
    Loading from cache

  - Installing symfony/process (2.3.x-dev b09d36a)
    Loading from cache

  - Installing symfony/finder (2.3.x-dev fc0fbd5)
    Loading from cache

  - Installing symfony/console (2.3.x-dev f77c13a)
    Loading from cache

  - Installing symfony/filesystem (dev-master c136348)
    Loading from cache

  - Installing symfony/routing (2.3.x-dev 7d41463)
    Loading from cache

  - Installing symfony/debug (2.3.x-dev 93f2633)
    Loading from cache

  - Installing symfony/event-dispatcher (2.3.x-dev 30b2f95)
    Loading from cache

  - Installing symfony/http-foundation (2.3.x-dev 8ee2965)
    Loading from cache

  - Installing symfony/http-kernel (2.3.x-dev e6f1920)
    Loading from cache

  - Installing kriswallsmith/assetic (v1.1.2)
    Loading from cache

  - Installing codesleeve/sprockets (dev-master 2d14c76)
    Loading from cache

  - Installing symfony/dom-crawler (2.3.x-dev 7a72398)
    Loading from cache

  - Installing swiftmailer/swiftmailer (v5.0.3)
    Loading from cache

  - Installing predis/predis (0.8.x-dev 09cb667)
    Loading from cache

  - Installing patchwork/utf8 (v1.1.16)
    Loading from cache

  - Installing nesbot/carbon (1.7.0)
    Loading from cache

  - Installing monolog/monolog (dev-master 5ad421d)
    Loading from cache

  - Installing nikic/php-parser (dev-master 0353c92)
    Loading from cache

  - Installing jeremeamia/superclosure (1.0.1)
    Loading from cache

  - Installing ircmaxell/password-compat (1.0.x-dev 1fc1521)
    Loading from cache

  - Installing classpreloader/classpreloader (1.0.1)
    Loading from cache

  - Installing symfony/translation (2.3.x-dev 6b255d2)
    Loading from cache

  - Installing symfony/css-selector (2.3.x-dev 8df20c5)
    Loading from cache

  - Installing symfony/browser-kit (2.3.x-dev 7149642)
    Loading from cache

  - Installing filp/whoops (1.0.7)
    Loading from cache

  - Installing doctrine/dbal (2.4.x-dev ad8608b)
    Loading from cache

  - Installing laravel/framework (4.0.x-dev 426c9e0)
    Loading from cache

  - Installing leafo/scssphp (v0.0.7)
    Loading from cache

  - Installing coffeescript/coffeescript (1.3.1)
    Loading from cache

  - Installing leafo/lessphp (v0.4.0)
    Loading from cache

  - Installing nitra/php-min (dev-master f2d5e3f)
    Loading from cache

  - Installing codesleeve/asset-pipeline (dev-master cad206e)
    Loading from cache

  - Installing mustache/mustache (v2.4.1)
    Loading from cache

  - Installing way/generators (dev-master 8390ef9)
    Downloading: 100%

  - Installing barryvdh/laravel-migration-generator (dev-master 5cd7ec3)
    Loading from cache

  - Installing dinesh/barcode (dev-master 6cbcffb)
    Loading from cache

  - Installing symfony/class-loader (dev-master d122b8a)
    Loading from cache

  - Installing dflydev/markdown (dev-master 6baed9b)
    Loading from cache

  - Installing phpdocumentor/reflection-docblock (2.0.0)
    Loading from cache

  - Installing barryvdh/laravel-ide-helper (v1.7.1)
    Loading from cache

symfony/routing suggests installing symfony/config ()
symfony/routing suggests installing symfony/yaml ()
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/http-kernel suggests installing symfony/config ()
symfony/http-kernel suggests installing symfony/dependency-injection ()
kriswallsmith/assetic suggests installing twig/twig (Assetic provides the integr
ation with the Twig templating engine)
kriswallsmith/assetic suggests installing ptachoire/cssembed (Assetic provides t
he integration with phpcssembed to embed data uris)
kriswallsmith/assetic suggests installing leafo/scssphp-compass (Assetic provide
s the integration with the SCSS compass plugin)
predis/predis suggests installing ext-phpiredis (Allows faster serialization and
 deserialization of the Redis protocol)
patchwork/utf8 suggests installing lib-icu (Use Intl for best performance)
monolog/monolog suggests installing mlehner/gelf-php (Allow sending log messages
 to a GrayLog2 server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an A
MQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a M
ongoDB server)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages
 to a CouchDB server)
monolog/monolog suggests installing raven/raven (Allow sending log messages to a
 Sentry server)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages
to an Elastic Search server)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages
to AWS services like DynamoDB)
symfony/translation suggests installing symfony/config ()
symfony/translation suggests installing symfony/yaml ()
Writing lock file
Generating autoload files
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","me
ssage":"Class 'Codesleeve\\AssetPipeline\\Filters\\CssRewrite' not found","file"
:"C:\\laravel-projects\\plansherpa\\app\\config\\packages\\codesleeve\\asset-pip
eline\\config.php","line":64}}Script php artisan optimize handling the post-inst
all-cmd event returned with an error



  [RuntimeException]
  Error Output:



install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-p
lugins] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--ver
bose] [-o|--optimize-autoloader]

在 OSX (Mountain Lion) 和 Windows 7 Home Premium 上显示相同的错误消息。我现在该如何解决?

请帮帮我!提前致谢。

【问题讨论】:

  • 你有一个 Laravel 的问题,而不是 Composer,因为 Composer 所做的一切都很顺利——除了调用 Laravel 脚本来做一些事情。我了解到 Laravel 有一些最新版本的更新程序(我自己没有使用它) - 你应该检查这个程序是否适用于你。

标签: laravel-4 composer-php


【解决方案1】:

似乎是 codeleeve 问题,而不是 laravel / composer。

你之前安装过codeleeve吗?

尝试从 app/config/app.php 文件中删除该行

从composer.json中移除codesleeve

运行作曲家更新。现在一切都应该正常了。

在composer.json中重新添加codesleeve

运行另一个作曲家更新

将codeleeve服务提供者重新添加到app/config/app.php

运行作曲家转储自动加载

查看每个步骤的情况。我假设问题仍然存在,但前 3-4 步会很好。

可能考虑将 laravel 升级到 4.1,因为我认为新的 codeleeve 需要一些东西?

tl:dr 它正在寻找 Codesleeve\AssetPipeline\Filters\CssRewrite 但找不到它。

【讨论】:

  • 非常感谢!我可以按照你给我的步骤来修复它,然后运行命令php artisan config:publish codesleeve/asset-pipeline,然后将codeleeve服务提供者重新添加到app/config/app.php
猜你喜欢
  • 1970-01-01
  • 2016-01-01
  • 2013-06-10
  • 2017-11-24
  • 1970-01-01
  • 2021-08-07
  • 2020-07-27
  • 2014-06-11
  • 2013-06-02
相关资源
最近更新 更多