문제

composer.phar 설치를 실행하면

→ sudo php composer.phar install

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
Clearing the cache for the dev environment with debug true
Installing assets using the hard copy option
Installing assets for Symfony\Bundle\FrameworkBundle into web/bundles/framework
Installing assets for FOS\JsRoutingBundle into web/bundles/fosjsrouting
etc etc
.

그러나 이제는이 번들을 설치하고 싶습니다 : https://github.com/knplabs/knppaginatorbundle https://packagist.org/packages/knplabs/knp-paginator-bundle

그래서 composer.json 파일을 새 요구 사항으로 업데이트하십시오.

{
"require": {
    "knplabs/knp-paginator-bundle": "v2.1"
}
.

}

(나는 PacKegist에서 페이지 라이너의 모든 버전을 시도하고 여전히 동일한 오류가 동일한 오류)

다음 설치하려고합니다 :

→ sudo php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for symfony/framework-standard-edition 2.1.x-dev -> satisfiable by symfony/framework-standard-edition[2.1.x-dev].
    - symfony/framework-standard-edition 2.1.x-dev requires knplabs/knp-paginator-bundle v2.1 -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
.

및 현재 Composer.json의 symfony2 행 :

    "require": {
    "php": ">=5.3.3",
    "symfony/symfony": "2.1.*",
    "doctrine/orm": ">=2.2.3,<2.4-dev",

"symfony/symfony": "2.1.x-dev" did not help
.

어떻게해야합니까?

도움이 되었습니까?

해결책 2

시간 이후 나는 마침내 해결책을 발견했습니다!

My Composer.json 의존성이 최상의 형태가 아니라 필수적인 묶음을 업데이트하고 설치하는 것이 무엇인지 알지 못합니다.

wooot ???나는 방금 말했어 ???예, 필요한 번들만이 ...

sudo php composer.phar require 
.

그런 다음 "nofollow"> https://packagist.org에서 멋진 검색으로 욕망의 번들을 찾으십시오. 목록에서 번호를 선택하고 버전을 채 웁니다.

번들을 다운로드합니다. composer.json 및 composer.lock 파일을 업데이트하십시오.)

이 대답은 누군가를 도울 것입니다!

다른 팁

프로젝트 디렉토리 에서이 명령을 실행해야합니다.

php composer.phar update
.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top