문제

나는 다음에 이 젠토 DevDocs 튜토리얼 샘플 데이터를 설치 설치 후 젠토 2.

하지만 실행한 후에 마지막 명령 ./bin/magento sampledata:deploy 나는 다음과 같은 오류가:

./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - The requested package magento/module-offline-shipping-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 2
    - The requested package magento/module-theme-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 3
    - The requested package magento/module-sales-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 4
    - The requested package magento/module-msrp-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 5
    - The requested package magento/module-sales-rule-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 6
    - The requested package magento/module-configurable-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 7
    - The requested package magento/module-product-links-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 8
    - The requested package magento/module-catalog-rule-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 9
    - The requested package magento/module-grouped-product-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 10
    - The requested package magento/module-tax-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 11
    - The requested package magento/module-catalog-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 12
    - The requested package magento/module-downloadable-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 13
    - The requested package magento/module-cms-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 14
    - The requested package magento/module-bundle-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 15
    - The requested package magento/module-swatches-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 16
    - The requested package magento/module-widget-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 17
    - The requested package magento/module-review-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 18
    - The requested package magento/module-customer-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 19
    - The requested package magento/module-wishlist-sample-data could not be found in any version, there may be a typo in the package name.

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.

은 있을 수 없는 솔루션을 찾고 정직 내의 지식을 작곡가 심각하게 부족하다.어떤 도움이 될 것을 환영합니다.

도움이 되었습니까?

해결책

샘플 데이터를 설치하는 데 어려움을 겪고 있습니다. Somthing이 현재 여기서 (2015 년 10 월) 및 지침 DevDocs 는 나를 위해 작동하지 않았습니다. 나는 동일한 작곡가 문제를 경험하고 있고, magento sampledata:install가 거기에도 없었습니다.

대신 샘플 데이터의 Readme 파일에 대한 "GitHub 저장소"지침을 따르고 있습니다. :

은 repo를 어딘가에 복제합니다 (도구가 개별 모듈을 심볼 링크하는 도구를 처리하고 있기 때문에 프로젝트 폴더 밖에있을 수 있습니다) :

git clone https://github.com/magento/magento2-sample-data.git ~/sample-data
.

다음 "설치 프로그램"스크립트를 실행하십시오.

php -f ~/sample-data/dev/tools/build-sample-data.php -- --ce-source="$PATH_TO_YOUR_MAGENTO2_PROJECTROOT"
.

업데이트 스크립트를 실행 한 후 :

cd $PATH_TO_YOUR_MAGENTO2_PROJECTROOT
bin/magento setup:upgrade
.

및 설치중인 샘플 데이터가 표시되어야합니다 (시간이 걸립니다 ...) :

[...]
Module 'Magento_DownloadableSampleData':
Installing data..
Module 'Magento_ThemeSampleData':
Installing data..
Module 'Magento_OfflineShippingSampleData':
Installing data..
Module 'Magento_ConfigurableSampleData':
Installing data..
Module 'Magento_BundleSampleData':
Installing data..
Module 'Magento_ProductLinksSampleData':
Installing data..
Module 'Magento_ReviewSampleData':
Installing data..
[...]
.

캐시를 지우고 사용 권한을 해결하는 것을 잊지 마십시오. 백엔드와 프론트 엔드의 모든 샘플 데이터를 지금 볼 수 있습니다 ...

다른 팁

는 동일한 문제가있었습니다.루트 디렉토리로 가서 다음 명령을 사용하여 작곡가의 저장소를 지정하여 수정되었습니다 (작곡가 경고를 피하기 위해 HTTPS 사용) :

composer config repositories.magento composer https://repo.magento.com
.

그 후

cd bin
php magento sampledata:deploy
.

의도 된

최근 코드 변경 사항은 Magento 2 및 샘플 데이터 저장소를 제공 한 Magento 2 CE Github 개발을 사용하여 샘플 데이터를 설치할 수 있습니다.

이 샘플 데이터를 설치하는 방법은 명령 줄 옵션과 작곡가 옵션을 사용하여 GA 시간에 의해 기압됩니다. 그러나 현재 AFAIK는 샘플 데이터를 개발 분기와 함께 설치하는 유일한 방법입니다.

요약 :

  1. 는 Magento 2 CE GitHub 저장소를 복제합니다 (지점 개발은 기본값입니다).
  2. 프로젝트 루트에서 'Composer 설치'를 실행합니다.
  3. clone Magento 2 샘플 데이터 저장소 (지점 개발이 기본값)입니다. < / li>
  4. 샘플 데이터 저장소를 연결합니다. (PHP -F 샘플 - 데이터-repo / dev / tools / build-sample-data.php - - -ce-source="magento-ce-source-dir")
  5. 샘플 데이터 저장소에서 사용 권한 및 소유권을 설정합니다.
  6. CLI 또는 설치 마법사를 사용하여 Magento를 설치합니다. (설치 마법사는 더 이상 샘플 데이터를 설치하지 않습니다 확인란을 가지고 있습니다.)
  7. 설치 마법사를 실행하면 약 90 % 완료시 예외가 표시 될 수 있습니다. 그렇다면 파일 시스템 사용 권한 및 소유권을 다시 설정하십시오 (루트로서 가장 가능성이 높음).

    세부 정보 : http://devdocs.magento.com/guides/v2.0/install-gde/install/web/install-web-sample-data.html

첫 번째 섹션에서,추가 "minimum-stability": "beta", 하기 전에 라이센스입니다.

https://packages.magento.com 자홍색을위한 이전 패키지 URL은 Composer.json 파일을 변경합니다. https://repo.magento.com

이 대안을 사용할 수있는 경우를 대비하여 :

composer config repositories.0 composer https://repo.magento.com
.

및 다음 :

magento sampledata:deploy
.

사용자 이름 / 암호를 묻는 메시지가 나타납니다. public_key / private_key 을 Magento Marketplace 계정

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