正在播放:如何创建一个新的Laravel项目
更新时间:2年前
Laravel 5.5 基础

ShiVIP 2019-04-03 18:13:53
用laravel new poject 报错 Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for nesbot/carbon 2.16.2 -> satisfiable by nesbot/carbon[2.16.2]. - nesbot/carbon 2.16.2 requires php ^7.1.8 || ^8.0 -> your PHP version (7.1.6) does not satisfy that requirement. Problem 2 - nesbot/carbon 2.16.2 requires php ^7.1.8 || ^8.0 -> your PHP version (7.1.6) does not satisfy that requirement. - laravel/framework v5.8.9 requires nesbot/carbon ^1.26.3 || ^2.0 -> satisfiable by nesbot/carbon[2.16.2]. - Installation request for laravel/framework v5.8.9 -> satisfiable by laravel/framework[v5.8.9]. 为什么呢

codinget 2019-04-03 18:37:10
php版本的问题,信息里面的提示还是挺清楚的,升级一下php吧

ShiVIP 2019-04-03 21:37:06
可以留的微信 交流一下嗎。

codinget 2019-04-03 22:08:09
兄弟,不要逼我破戒了,我好不容易才把微信、QQ 啥的戒掉了,www.coding10.com/discussion 这里可以打开网站的问答区,这个板块早就存在,只是一直没有开放过,也是因为我做视频已经相当消耗时间和精力,担心开放了之后没有足够的精力去维护,咱们在这里交流问题。再次向兄弟说声抱歉,微信 QQ 是时间黑洞,这两个软件在我手机上基本上是僵尸的状态,只是偶尔用一下。

ShiVIP 2019-04-03 22:39:01
在这个环境中 用什么命令 升级php版本

codinget 2019-04-03 22:58:32
sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get -y install php7.2 安装 7.2 或者 7.3 版本都行,然后再安装对应版本的扩展就行了, 安装扩展的部分你可以参照下面的文章 http://www.coding10.com/post/build-LNMP-env-in-deepin-linux 把扩展修改成 7.2 的就可以了,有些扩展可能不需要安装了,比如 mcrypt

niuniu 2020-02-03 22:16:06
~/D/coding ❯❯❯ php artisan serve PHP Warning: require(/home/coding10/Desktop/coding/vendor/autoload.php): failed to open stream: No such file or directory in /home/coding10/Desktop/coding/artisan on line 18 PHP Fatal error: require(): Failed opening required '/home/coding10/Desktop/coding/vendor/autoload.php' (include_path='.:/usr/share/php') in /home/coding10/Desktop/coding/artisan on line 18 请问这是什么意思
暂无相关资源