Home > Articles > composer, Laravel > Laravel ã® composer install 㧠In PackageManifest.php line 122 : Undefined index: name ãåºã¦å°ã£ã話
https://github.com/hirak/prestissimo ãã©ã°ã¤ã³ãå ¥ããããhttps://packagist.jp/ ãã©ã¼ã使ãããã«è¨å®ããç¶æ ã§ãComposerã2ç³»ã«ã¢ãããã¼ãããã¨ãcomposer requireæçã«ä»¥ä¸ã®ãããªè¦åã»ã¨ã©ã¼ãåºãã The "hirak/prestissimo" plugin was skipped because it requires a Plugin API version ("^1.0.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option. ããã¯ã¨ãããã--no-pluginsãªãã·ã§ã³ãã¤ãã¦å®è¡ããã
âComposerAutoloaderâ¦â not foundã¨ã©ã¼php artisan ã³ãã³ããå®è¡ãããã¨ããæã«ã表é¡ã®ã¨ã©ã¼ã¨ãªãã¾ããã ã¨ã©ã¼ã®å 容ãããautoload.php ãã¡ã¤ã«å ã®å®ç¾©ãè¦ã¤ãããªãã¨ã®ãã¨ã ã¨ãããã¨ã§ä¸è¨ã³ãã³ãã§composerãæ´æ°ãããã¨ã§ç¡äºåãããã«ãªãã¾ããã $ composer update
ã¿ã°ï¼ Composer Composerã¯ããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ãã¦ããã¾ãã èªåãä¼ç¤¾ã§ä½¿ç¨ãã¦ããã©ã¤ãã©ãªã¼ãªã©ãããã±ã¼ã¸ã¨ãã¦å©ç¨ã§ãã¾ããã ä»åã¯åãã³ã³ãã¥ã¼ã¿ã¼å ã«ãããGitã§ãã¼ã¸ã§ã³ç®¡çãè¡ãªã£ã¦ããã½ã¼ã¹ãåãè¾¼ãã§ã¿ã¾ãããã ãµã³ãã«ãéãã¦å¦ç¿ãã¾ããå®ä¾ãéãã¦è¦ã¦ãããã°ãä¸çºã§ç解ã§ãã¾ããComposerã®ä»çµã¿ãç解ããã«ãæé©ã§ãããã ãã£ã¬ã¯ããªã¼æ§é ãã¼ã ãã£ã¬ã¯ããªã¼ãã©ããé©å½ãªå ´æã«ã以ä¸ã®æ§é ã§ãã£ã¬ã¯ããªã¼ï¼ãã¡ã¤ã«ãè¨ç½®ãã¾ãã + ComposerPrivateRepoTest + DummyProject - composer.json - test.php + RepoProject + src + Ralabel - Output.php - composer.json å¾çä»ããç°¡åãªããã«ãåããã£ã¬ã¯ããªã¼
Composerã§ã¤ã³ã¹ãã¼ã«æ¸ã¿ã®ããã±ã¼ã¸ãæ´æ°ã»åé¤ãã Composerã¯ããã±ã¼ã¸ç®¡çãã¼ã«ã§ãã ç®çã®ã©ã¤ãã©ãªã«é¢é£ï¼ä¾åï¼ããããã±ã¼ã¸ãã ä¸ç·ã«ä¸æ¬ã®ã¤ã³ã¹ãã¼ã«ãã¦ããã¦ä¾¿å©ã§ãã æ¢ã«ã¤ã³ã¹ãã¼ã«ããã¦ããããã±ã¼ã¸ã®æ´æ°ãåé¤ãcomposer.jsonã®å¤æ´ã§è¡ãã¾ãã
éçºéä¸ã§composerã®ããã±ã¼ã¸ã追å ã§å ¥ããå ´é¢ããã£ãéã« composer.jsonã«è¿½è¨ã㦠composer update ã§ãããã®ã§ãã ããããã¨é¢ä¿ç¡ãã©ã¤ãã©ãªã®æ´æ°ã¾ã§å ¥ã£ã¦ãã¾ãã®ã§ ããããããªãå ´åãããã¨æãã¾ãã ãã®å ´åã¯ã³ãã³ãã§ããã¨composerå´ããããªã«ãã£ã¦ãããã®ã§ ãã®ããæ¹ã®ã¡ã¢ã§ã 追å æ¹æ³ ããã±ã¼ã¸ãå¾è¿½ãã§è¿½å ããã ã³ãã³ãã§ããå ´å㯠composer require {ããã±ã¼ã¸å} ã§è¡ãã¾ãã ä»®ã«å ¥ãããããã±ã¼ã¸åã hoge/huga ã®å ´å ãã®å ´åã¯å½è©²ããã±ã¼ã¸ã®ã¿ãå ¥ãè¾¼ã¿ãã¾ãcomposer.jsonã«ã追è¨ãã¦ããã¾ãã ãªããhoge/hugeã«ãããããã±ã¼ã¸åã®ä¸è¦§ã¯ Packagistããæ¢ãã ãã¼ã¸ã§ã³æå®ãã¦ããã±ã¼ã¸ãå¾è¿½ãã§è¿½å ããã å¤ããã¼ã¸ã§ã³ã®ã¢ã¸ã¥ã¼ã«ã使ãå¿ è¦ãã
ããã«ã¡ã¯ã æè¿ä½çµæè¨ãè²·ã£ãã®ã§ãããä¹ããã³ã«ä½éãå¢ãã¦ãã¦çµ¶æãã¦ããéçºå®¤å¡ã§ãã ä»åã¯Composerã®ãã¼ã¸ã§ã³ç®¡çã®è¡¨è¨ã«ã¤ãã¦ã®è©±ããããã¨æãã¾ãã ã¿ããªå¤§å¥½ãComposer Composerç´ æ´ãããã§ãããã ï¼ããã±ã¼ã¸ç®¡çã·ã¹ãã ã¯åå¤§ï¼ PHPã§éçºããå ´åãå¿ è¦ãªã½ããã¦ã§ã¢ãããã±ã¼ã¸ã¨ãã¦ã¤ã³ã¹ãã¼ã«ã§ãã¾ããã ã¤ã³ã¹ãã¼ã«ããããã±ã¼ã¸ã¯composer.jsonã«è¿½è¨ããã¦ããã®ã§ã ãã¼ã å ã§jsonãã¡ã¤ã«ãå ±æãã¦ããã°ãåãããã±ã¼ã¸ãã³ãã³ãä¸ã¤ã§ã¤ã³ã¹ãã¼ã«ã§ãã¾ãã composer.jsonãGitãªã©ã§ç®¡çããããã«ãã¦ãå人ã®ç°å¢ã§ã¤ã³ã¹ãã¼ã«ãã¦ãããããã«ããã°ã å¿ è¦ãªã½ããã¦ã§ã¢ãå ¨ã¦Gitã§ç®¡çããªãã¦ããã®ã§ä½è¨ãªå®¹éãé£ãã¾ããã composer.jsonã¨composer.lock ä¸è¨ã§compos
ã¯ããã« ããã£ã¡ã ãããæ¹å¿ããã®ã§ã¡ã¢ç¨åº¦ã«æ®ãã¦ãã require-devã¸1ã©ã¤ãã¼ã§è¿½å ããæ¹æ³ composer require ã¢ã«ã¦ã³ãå/ããã±ã¼ã¸å --dev require 㨠require-devã®ã¡ãã ç¨®é¡ ç®ç require æ¬çªç°å¢ã¨éçºç°å¢ã§å ±ã«å©ç¨ require-dev éçºç°å¢ã®ã¿å©ç¨ ãããã« ãã¼ã¸ã§ã³ã¨ãè²ã ç½ ããã®ã§ãªãããã®ã¸ããã¤ãã¾ã¨ããã
æ¬ç¨¿ã§ã¯ PHP ã®ããã±ã¼ã¸ç®¡çãã¼ã« Composer ã CentOS ã«ã¤ã³ã¹ãã¼ã«ããæé ã«ã¤ãã¦è§£èª¬ãã¾ãã åæäºé Composer ãå©ç¨ããããã«ã¯ãããããã CentOS ã« PHP ãã¤ã³ã¹ãã¼ã«ããã¦ããå¿ è¦ãããã¾ãã ã¾ã ã¤ã³ã¹ãã¼ã«ãæ¸ãã§ããªãå ´åã¯ãã¤ãã®ãã¼ã¸ãªã©ãåèã« PHP ã®ã¤ã³ã¹ãã¼ã«ãæ¸ã¾ãã¦ãã ããã Composer ãå©ç¨ããããã«ã¯ãPHP 5.3.2 以ä¸ãå¿ è¦ã§ãã CentOS 7 ã« PHP 5.6 ã yum ã§ã¤ã³ã¹ãã¼ã«ããæé CentOS 7 ã« PHP 7.0 ã yum ã§ã¤ã³ã¹ãã¼ã«ããæé CentOS 7 ã« PHP 7.1 ã yum ã§ã¤ã³ã¹ãã¼ã«ããæé CentOS 7 ã« PHP 7.2 ã yum ã§ã¤ã³ã¹ãã¼ã«ããæé CentOS 7 ã« PHP 7.4 ã yum ã§ã¤ã³ã¹ãã¼ã«ããæ
ç°å¢ Windows10 bit64 Laravel Framework 5.5.40 PHP 7.3.7 (cli) äºè±¡ : composerã§ã¤ã³ã¹ãã¼ã«ãããä½ããé¡ãããã $ composer install #... çç¥ ... In Compiler.php line 36: Please provide a valid cache path. Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
<?php require "TestClass1.php"; require "TestClass2.php"; require "TestClass3.php"; use TestClass1; use TestClass2; use TestClass3; $test1 = new TestClass1(); $test2 = new TestClass2(); $test3 = new TestClass3(); <?php require vendor/autoload.php use TestClass1; use TestClass2; use TestClass3; $test1 = new TestClass1(); $test2 = new TestClass2(); $test3 = new TestClass3(); ã©ãã«ãTestClass*ãæ¸ãã¦ãªãã®ã«ãT
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}