久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      關(guān)于Composer常見(jiàn)錯(cuò)誤及其解決辦法

      下面由composer教程欄目給大家介紹關(guān)于Composer常見(jiàn)錯(cuò)誤及其解決辦法,希望對(duì)需要的朋友有所幫助!

      關(guān)于Composer常見(jiàn)錯(cuò)誤及其解決辦法

      Composer常見(jiàn)錯(cuò)誤解決方案

      執(zhí)行composer install遇到錯(cuò)誤:Your requirements could not be resolved to an installable set of packages. 這是因?yàn)椴黄ヅ鋍omposer.json要求的版本。

      完整錯(cuò)誤如下:

      vagrant@homestead:/usr/share/nginx/html/laravel-blog$ sudocomposerinstall Loadingcomposerrepositorieswithpackage information Installingdependencies (includingrequire-dev) fromlockfile Yourrequirementscouldnot beresolvedto aninstallablesetofpackages.      Problem 1     - Installationrequestfor doctrine/instantiator 1.0.3 -> satisfiablebydoctrine/instantiator[1.0.3].     - doctrine/instantiator 1.0.3 requiresphp ~5.3 -> yourPHPversion (7.0.3) doesnot satisfythatrequirement.   Problem 2     - doctrine/instantiator 1.0.3 requiresphp ~5.3 -> yourPHPversion (7.0.3) doesnot satisfythatrequirement.     - phpunit/phpunit-mock-objects 2.3.0 requiresdoctrine/instantiator ~1.0,>=1.0.1 -> satisfiablebydoctrine/instantiator[1.0.3].     - Installationrequestfor phpunit/phpunit-mock-objects 2.3.0 -> satisfiablebyphpunit/phpunit-mock-objects[2.3.0].

      提示我的PHP 7版本太高,不符合composer.json需要的版本,但是在PHP 7下應(yīng)該也是可以運(yùn)行的,composer可以設(shè)置忽略版本匹配,命令是:

      composerinstall --ignore-platform-reqs

      或者

      composerupdate --ignore-platform-reqs

      再次執(zhí)行composer命令可以正常安裝包了。

      如果提示警告:

      Cannotcreatecachedirectory /home/vagrant/.composer/cache/repo/https---packagist.org/, or directoryis not writable. Proceedingwithoutcache   Cannotcreatecachedirectory /home/vagrant/.composer/cache/files/, or directoryis not writable. Proceedingwithoutcache

      這是在虛擬機(jī)中執(zhí)行composer,提示這個(gè)目錄沒(méi)有可寫(xiě)權(quán)限,composer無(wú)法緩存下載的包,這樣就每次都得重新下載,把目錄改成可寫(xiě)可讀即可。

      sudo chmod -R 777 /home/vagrant/.composer/cache/files/

      另外,在虛擬機(jī)中也設(shè)置composer為國(guó)內(nèi)鏡像,不然下載速度慢的要死,執(zhí)行:

      composerconfig -g repo.packagistcomposerhttps://packagist.phpcomposer.com

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)