问题:类 Symfony\Bundle\AsseticBundle\AsseticBundle 未找到

我在我的本地机器上安装了一个新的 symfony 3.1.6 副本,我创建了一个简单的项目,一切都很顺利,但是当我在 jenkins 上创建一个工作并启动一个构建时,我得到了这个错误:

[运行时异常]

执行“'cache:clear --no-warmup'”命令时出错:

PHP 致命错误:在第 29 行的 /var/lib/jenkins/workspace/projectfolder/app/AppKernel.php 中找不到类 'Symfony\Bundle\AsseticBundle\AsseticBundle'

这是我的作曲家文件:

"require": {
    "php": ">=5.5.9",
    "symfony/symfony": "3.1.*",
    "doctrine/orm": "^2.5",
    "doctrine/doctrine-bundle": "^1.6",
    "doctrine/doctrine-cache-bundle": "^1.2",
    "symfony/swiftmailer-bundle": "^2.3",
    "symfony/monolog-bundle": "^2.8",
    "symfony/polyfill-apcu": "^1.0",
    "sensio/distribution-bundle": "^5.0",
    "sensio/framework-extra-bundle": "^3.0.2",
    "incenteev/composer-parameter-handler": "^2.0",
    "sonata-project/admin-bundle": "^3.9",
    "sonata-project/doctrine-orm-admin-bundle": "^3.1",
    "friendsofsymfony/user-bundle": "~2.0@dev",
    "sonata-project/easy-extends-bundle": "^2.1",
    "sonata-project/classification-bundle": "^3.1",
    "sonata-project/core-bundle": "^3.1",
    "sonata-project/media-bundle": "^3.3",
    "symfony/assetic-bundle": "^2.8"
},

有什么帮助吗?任何想法?

解答

问题是'.composer'文件夹在服务器上不可写,所以我给它777

chmod 777 -R .composer

我解决了这个问题!

Logo

CI/CD社区为您提供最前沿的新闻资讯和知识内容

更多推荐