我试图创建一个新的laravel项目,过去我已经通过运行laravel new blog
成功创建了一个新的laravel项目,我刚刚在2小时前尝试过它并且我得到了这个错误。
nkossy Desktop $ laravel new blog
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 symfony/thanks v1.0.1 -> satisfiable by symfony/thanks[v1.0.1].
- symfony/thanks v1.0.1 requires composer-plugin-api ^1.1 -> no matching package found.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Application ready! Build something amazing.
正在运行安装了php7.1的Ubuntu 16.04
正在运行composer update
没有帮助
答案 0 :(得分:0)
只需运行
即可在本地解决此问题composer update
答案 1 :(得分:0)
删除项目的composer.json插件中的“symphony / thanks”依赖项,并在之后运行“composer update”。
答案 2 :(得分:0)
这就是我所做的。
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
最后运行laravel new app
,完成。