2017-07-03 174 views
-2

我已經安裝cakephp使用作曲家。 但在運行時顯示以下錯誤。蛋糕PHP安裝問題

警告:require(D:\ xampp \ htdocs \ my_app_name/vendor/autoload.php):未能打開流:在D:\ xampp \ htdocs \ my_app_name \ webroot \ index.php中沒有這樣的文件或目錄在線27 致命錯誤:require():在D:\ xampp \中打開所需的'D:\ xampp \ htdocs \ my_app_name/vendor/autoload.php'(include_path ='D:\ xampp \ php \ PEAR' htdocs \ my_app_name \ webroot \ index.php on line 27

你能幫我嗎?


 
[email protected] MINGW64 /d/xampp/htdocs 
 
$ composer self-update 
 
You are already using composer version 1.4.2 (stable channel). 
 
    
 
[email protected] MINGW64 /d/xampp/htdocs 
 
$ composer create-project --prefer-dist cakephp/app mylogin 
 
Installing cakephp/app (3.4.2) 
 
    - Installing cakephp/app (3.4.2): Loading from cache 
 
Created project in mylogin 
 
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 
 
    - cakephp/cakephp 3.4.9 requires ext-intl * -> the requested PHP extension i 
 
ntl is missing from your system. 
 
    - cakephp/cakephp 3.4.8 requires ext-intl * -> the requested PHP extension i 
 
ntl is missing from your system. 
 
    - cakephp/cakephp 3.4.7 requires ext-intl * -> the requested PHP extension i 
 
ntl is missing from your system. 
 
    - cakephp/cakephp 3.4.6 requires ext-intl * -> the requested PHP extension i 
 
ntl is missing from your system. 
 
    - cakephp/cakephp 3.4.5 requires ext-intl * -> the requested PHP extension i 
 
ntl is missing from your system. 
 
    - cakephp/cakephp 3.4.4 requires ext-intl * -> the requested PHP extension i 
 
ntl is missing from your system. 
 
    - cakephp/cakephp 3.4.3 requires ext-intl * -> the requested PHP extension i 
 
ntl is missing from your system. 
 
    - cakephp/cakephp 3.4.2 requires lib-icu >=4.8 -> the requested linked libra 
 
ry icu has the wrong version installed or is missing from your system, make sure 
 
to have the extension providing it. 
 
    - cakephp/cakephp 3.4.1 requires lib-icu >=4.8 -> the requested linked libra 
 
ry icu has the wrong version installed or is missing from your system, make sure 
 
to have the extension providing it. 
 
    - cakephp/cakephp 3.4.0 requires lib-icu >=4.8 -> the requested linked libra 
 
ry icu has the wrong version installed or is missing from your system, make sure 
 
to have the extension providing it. 
 
    - Installation request for cakephp/cakephp 3.4.* -> satisfiable by cakephp/c 
 
akephp[3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.4.5, 3.4.6, 3.4.7, 3.4.8, 3.4.9]. 
 
    
 
    To enable extensions, verify that they are enabled in your .ini files: 
 
    - D:\xampp\php\php.ini 
 
    You can also run `php --ini` inside terminal to see which files are used by PH 
 
P in CLI mode. 
 
    
 
[email protected] MINGW64 /d/xampp/htdocs 
 
$ 
 

感謝,

+1

你能告訴我們CakePHP的版本嗎? – Sehdev

+0

@ÁlvaroGonzálezCakePHP的3.4 – Trishna

+0

@Sehdev我認爲這是最新版本的CakePHP 3.4 – Trishna

回答

0

運行以下命令第一(你可能需要的,如果作曲家在全球安裝使用sudo預先考慮這一點)

composer self-update 

然後再次

composer create-project --prefer-dist cakephp/app my_app_name 
+0

嗨,我試了下面的代碼。但顯示以下錯誤 警告:require(D:\ xampp \ htdocs \ mylogin/vendor/autoload.php):未能打開流:在D:\ xampp \ htdocs \ mylogin \ webroot \ index中沒有這樣的文件或目錄。 php在線27 致命錯誤:require():在D:\中打開所需的'D:\ xampp \ htdocs \ mylogin/vendor/autoload.php'(include_path ='D:\ xampp \ php \ PEAR')失敗。第27行中的xampp \ htdocs \ mylogin \ webroot \ index.php – Trishna