简体   繁体   English

作曲家无法安装Laravel

[英]Composer can't install laravel

I got this issue when I've tried to install Laravel !! 我尝试安装Laravel时遇到了这个问题!

composer create-project --prefer-dist laravel/laravel blog

[Composer\\Downloader\\TransportException] The " http://packagist.org/p/provider-2017-04%24cc0b63f9292683fc4f978a14aca71a0c07b2025b938e199310663bcc64ced957.json " file could not be downloaded (HTTP/1.1 404 No t Found) [Composer \\ Downloader \\ TransportException]无法下载“ http://packagist.org/p/provider-2017-04%24cc0b63f9292683fc4f978a14aca71a0c07b2025b938e199310663bcc64ced957.json ”文件(找不到HTTP / 1.1 404)

If you all care is to just get a running Laravel without getting in too much deep that how it get installed, I would suggest you choose another way which does the same thing ie use Laravel Installer instead of composer. 如果您只是想在不了解如何安装Laravel的情况下获得正在运行的Laravel,我建议您选择另一种做相同事情的方法,即使用Laravel Installer而不是composer。


Via Laravel Installer 通过Laravel安装程序

First, download the Laravel installer using Composer: 首先,使用Composer下载Laravel安装程序:

composer global require "laravel/installer"

Make sure to place the $HOME/.composer/vendor/bin directory (or the equivalent directory for your OS) in your $PATH so the laravel executable can be located by your system. 确保将$ HOME / .composer / vendor / bin目录(或操作系统的等效目录)放在$ PATH中,以便系统可以定位laravel可执行文件。

Once installed, the laravel new command will create a fresh Laravel installation in the directory you specify. 安装完成后,laravel new命令将在您指定的目录中创建一个全新的Laravel安装。 For instance, laravel new blog will create a directory named blog containing a fresh Laravel installation with all of Laravel's dependencies already installed: 例如,laravel new blog将创建一个名为blog的目录,其中包含一个全新的Laravel安装,其中已经安装了所有Laravel的依赖项:

laravel new blog

More info: 更多信息:

https://laravel.com/docs/master https://laravel.com/docs/master

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM