![]() ![]() ![]() ![]() |
|||||
|
|||||
樓主 朵莉 ![]()
![]() |
今天我在新電腦安裝 laravel 想要安裝最新版 可是我指令輸入完後 出現以下畫面 ![]() 我上網查了一下 找不到原因 請問大家有遇過這樣的問題嗎 謝謝
搜尋相關Tags的文章:
[ php ] ,
本篇文章發表於2018-07-15 02:38 |
1樓
作者回應
朵莉 ![]() |
C:\xampp\htdocs>composer create-project --prefer-dist laravel/laravel blog
Installing laravel/laravel (v5.6.21) - Installing laravel/laravel (v5.6.21): Downloading (failed) Downloading (failed) Downloading (failed) Failed to download laravel/laravel from dist: The "https://api.github.com/repos/laravel/laravel/zipball/3f92cf66f53b3b53467497acc0d2a00cbd7b65f0" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed Failed to enable crypto failed to open stream: operation failed Now trying to download from source - Installing laravel/laravel (v5.6.21): Cloning 3f92cf66f5 [RuntimeException] Failed to clone https://github.com/laravel/laravel.git, git was not found, check that it is installed and in your P ATH env. 'git' is not recognized as an internal or external command, operable program or batch file. create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]
本篇文章回覆於2018-07-15 02:39
== 簽名檔 ==
--未登入的會員無法查看對方簽名檔-- |
2樓 |
午安
感覺是你 git 還沒安裝? 安裝 laravel 推薦用 installer,速度更快 ``` composer global require "laravel/installer" ``` 可以參考這邊 Laravel 道場
本篇文章回覆於2018-07-15 17:41
== 簽名檔 ==
--未登入的會員無法查看對方簽名檔-- |
3樓
作者回應
朵莉 ![]() |
您好
您的方式我試過 我也把GIT安裝上去 專案是製作出來了 但是出現好多 問題 C:\xampp\htdocs>laravel new blog Crafting application... Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Package operations: 70 installs, 0 updates, 0 removals - Installing doctrine/inflector (v1.3.0): Downloading (failed) Downloading (failed) Downloading (failed) Failed to download doctrine/inflector from dist: The "https://api.github.com/repos/doctrine/inflector/zipball/5527a48b7313d15261292c149e55e26eae771b0a" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed Failed to enable crypto failed to open stream: operation failed Now trying to download from source - Installing doctrine/inflector (v1.3.0): Cloning 5527a48b73 [RuntimeException] Failed to clone https://github.com/doctrine/inflector.git via https, ssh protocols, aborting. - https://github.com/doctrine/inflector.git Cloning into 'C:\xampp\htdocs\blog\vendor\doctrine\inflector'... fatal: unable to access 'https://github.com/doctrine/inflector.git/': SSL certificate problem: self signed certif icate in certificate chain - git@github.com:doctrine/inflector.git Cloning into 'C:\xampp\htdocs\blog\vendor\doctrine\inflector'... Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]... Application ready! Build something amazing. 我用瀏覽器導到我的public裡面一樣出現錯誤 Warning: require(C:\xampp\htdocs\blog\public/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\blog\public\index.php on line 24 Fatal error: require(): Failed opening required 'C:\xampp\htdocs\blog\public/../vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\blog\public\index.php on line 24 請問有人遇過類似問題嗎 謝謝
本篇文章回覆於2018-07-16 14:25
== 簽名檔 ==
--未登入的會員無法查看對方簽名檔-- |
4樓 |
那 Laravel 需要的 PHP extension 都有裝了嗎?
OpenSSL PHP Extension?
本篇文章回覆於2018-07-16 21:51
== 簽名檔 ==
--未登入的會員無法查看對方簽名檔-- |
回覆 |
如要回應,請先登入. |