문제

누구나 작곡가를 통해서만 Magento 2를 성공적으로 설치합니까? http://magenticians.com/installing-magento-2-Composer 그러나 슬프게도 그것은 구식입니다.나는 그것을 시도했다. 나는 오류를 얻는다 :

The requested package magento/community-edition could not be found in any version, there may be a typo in the package name.
.

Project-Community-Edition으로 패키지를 변경하려고 시도하고

Installation request for magento/project-community-edition *@dev -> satisfiable by magento/project-community-edition[dev-master].

magento/project-community-edition dev-master requires zendframework/zend-stdlib 2.0.3 -> no matching package found."
.

도움이 되었습니까?

해결책

Magenticians composer.json는 더 이상 최신이 아닙니다.다음 composer.json는 오늘 현재 작업을 수행하고 Ubuntu 14.04 로 테스트되었습니다.

{   "minimum-stability": "dev",
    "require": {
        "magento/project-community-edition": "*@dev"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/magento/magento2.git"
        }
    ]
}
.

요금 제한 문제로 인해 GitHub 계정이 필요합니다.

다른 팁

나는 샘플 데이터와 샘플 데이터와 "Developer Mode"에서 "Developer Mode"에서 데이터베이스를 사용하여 Magento 2를 샘플 데이터로 설치하는 두 가지 방법이 있습니다.


1 - Magento2 에있는 개발자 모드에서 샘플 데이터가 설치되어 있습니다
  • root 폴더 프로젝트에서 composer.json 복사

    wget https://raw.githubusercontent.com/magento/magento2-community-edition/master/composer.json
    

  • 2.0.2에서 2.0.7 또는 마지막 버전까지 MAGENTO2 버전 변경 => https://goo.gl/rk9byk

  • sudo없이 터미널에서 명령 실행

    • magento2 다운로드

      composer install
      

    • 작곡가의 Magento2 샘플 데이터 추가

      php bin/magento sampledata:deploy
      

    • 사용자 이름과 암호에 대한 자격 증명 추가 -> https://goo.gl/9eyoe0

    • magento2 샘플 데이터 다운로드

      composer update
      

    • magento2 설정 권한

      chmod -R 0777 var/
      chmod -R 0777 pub/static
      chmod -R 0777 pub/media/
      chmod -R 0777 app/etc/
      

    • MAGENTO2 샘플 데이터가있는

      php bin/magento setup:install --base-url=http://domain.com/ --db-host=localhost --db-name=database --db-user=root --db-password=root --admin-firstname=FirstName --admin-lastname=LastName --admin-email=email@email.com--admin-user=admin --admin-password=pass --language=en_US --backend-frontname=admin --use-sample-data --magento-init-params=“MAGE_MODE=developer”
      


      2 - Magento2 에서 개발자 모드에서 샘플 데이터가있는 설치
      • root 폴더 프로젝트에서 composer.json 복사

        wget https://raw.githubusercontent.com/magento/magento2-community-edition/master/composer.json
        

      • 2.0.2에서 2.0.7 또는 마지막 버전을 변경하십시오=> https://goo.gl/ rk9byk

      • sudo없이 터미널에서 명령 실행

        • magento2 다운로드

          composer install
          

        • magento2 설치

          • 브라우저에 설치
          • 또는
          • 터미널에 설치

            php bin/magento setup:install --base-url=http://domain.com/ --db-host=localhost --db-name=database --db-user=root --db-password=root --admin-firstname=FirstName --admin-lastname=LastName --admin-email=email@email.com --admin-user=admin --admin-password=pass --language=en_US --backend-frontname=admin --magento-init-params=“MAGE_MODE=developer”
            

          • 작곡가의 Magento2 샘플 데이터 추가

            php bin/magento sampledata:deploy
            

          • 사용자 이름과 암호에 대한 자격 증명 추가 -> https://goo.gl/9eyoe0

          • magento2 샘플 데이터 다운로드

            composer update
            

          • magento2 설정 권한

            chmod -R 0777 var/
            chmod -R 0777 pub/static
            chmod -R 0777 pub/media/
            chmod -R 0777 app/etc/
            

          • magento2 샘플 데이터 설치

            php bin/magento setup:upgrade
            

          • magento2 static content 배포

            find pub/static \! -name '.htaccess' -delete
            php bin/magento setup:static-content:deploy
            php bin/magento cache:clean
            

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