gpt4 book ai didi

php - Twitter bootstrap 未在 Laravel 4 中使用 Composer 安装

转载 作者:行者123 更新时间:2023-12-03 02:19:38 26 4
gpt4 key购买 nike

我正在编写以下教程:

http://net.tutsplus.com/tutorials/javascript-ajax/combining-laravel-4-and-backbone/

接下来我的composer.json 文件具有以下内容:

{
"require": {
"laravel/framework": "4.0.*",
"way/generators": "dev-master",
"twitter/bootstrap": "dev-master",
"conarwelsh/mustache-l4": "dev-master"
},
"require-dev": {
"phpunit/phpunit": "3.7.*",
"mockery/mockery": "0.7.*"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
]
},
"scripts": {
"post-update-cmd": "php artisan optimize"
},
"minimum-stability": "dev"
}

我运行 Composer 来安装依赖项

$ composer install --dev

如果我进入供应商文件夹,则没有 twitter-bootstrap 文件夹。 (其他依赖项似乎已安装。

当我运行更新时:

$ composer update --dev
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing symfony/console (2.3.x-dev 35da735)
- Installing symfony/console (2.3.x-dev 911cdac)
Downloading: 100%

Writing lock file
Generating autoload files
Generating optimized class loader
Compiling common classes

-- 没有错误, Bootstrap 文件不在供应商文件夹中

有人遇到过这个问题吗?有什么办法可以解决吗?

最佳答案

Composer 需要“twitter/bootstrap”:“*”
对我来说效果很好

关于php - Twitter bootstrap 未在 Laravel 4 中使用 Composer 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17394219/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com