内容简介:通过 laravel 命令构建项目报错
通过 laravel new
命令安装 laravel
项目时,遇到下面的错误:
[root@lnmp1 laravel]# laravel new
Crafting application...
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for league/flysystem 1.0.47 -> satisfiable by league/flysystem[1.0.47].
- league/flysystem 1.0.47 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
Problem 2
- league/flysystem 1.0.47 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- laravel/framework v5.7.6 requires league/flysystem ^1.0.8 -> satisfiable by league/flysystem[1.0.47].
- Installation request for laravel/framework v5.7.6 -> satisfiable by laravel/framework[v5.7.6].
To enable extensions, verify that they are enabled in your .ini files:
- /usr/local/php/etc/php.ini
- /usr/local/php/conf.d/005-memcached.ini
- /usr/local/php/conf.d/007-redis.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Application ready! Build something amazing.
再网络上搜索了一下,没有找到合适的解决方式,最后改用其他方式安装项目
composer create-project --prefer-dist laravel/laravel
最终会在当前目录生成一个 laravel
目录项目。
以上所述就是小编给大家介绍的《通过 laravel 命令构建项目报错》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:- 「译」使用 Node 构建命令行应用
- 在 Go 中构建网络命令行界面
- 构建工具篇 - react 的 yarn eject 构建命令都做了什么
- 基于ANSI转义序列来构建命令行工具
- 使用 NodeJS 构建现代化的命令行工具
- [译] 如何使用 Node.js 构建一个命令行应用(CLI)
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。