dongqian0763 2019-02-05 10:30
浏览 77

无法创建Symfony 4项目

i'm working already with symfony 3, I've create a lot of project with it, so now i'm trying to create a project with symfony 4, but i can't when i type this command :

composer create-project symfony/skeleton my-project-symf-4

the project is created successfully, but the problem that is created with this version 3.4 instead of 4.2,

Installing symfony/skeleton (v3.4.22.1)
  - Installing symfony/skeleton (v3.4.22.1): Downloading (100%)
Created project in my-project-symf-4
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 22 installs, 0 updates, 0 removals
  - Installing symfony/flex (v1.1.8): Downloading (100%)

Prefetching 21 packages
  - Downloading (100%)
  - Installing psr/cache (1.0.1): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing psr/simple-cache (1.0.1): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.10.0): Loading from cache
  - Installing psr/log (1.1.0): Loading from cache
  - Installing symfony/debug (v3.4.22): Loading from cache
  - Installing symfony/console (v3.4.22): Loading from cache
  - Installing symfony/dotenv (v3.4.22): Loading from cache
  - Installing symfony/routing (v3.4.22): Loading from cache
  - Installing symfony/http-foundation (v3.4.22): Loading from cache
  - Installing symfony/event-dispatcher (v3.4.22): Loading from cache
  - Installing symfony/http-kernel (v3.4.22): Loading from cache
  - Installing symfony/finder (v3.4.22): Loading from cache
  - Installing symfony/filesystem (v3.4.22): Loading from cache
  - Installing symfony/dependency-injection (v3.4.22): Loading from cache
  - Installing symfony/config (v3.4.22): Loading from cache
  - Installing symfony/class-loader (v3.4.22): Loading from cache
  - Installing symfony/polyfill-apcu (v1.10.0): Loading from cache
  - Installing symfony/cache (v3.4.22): Loading from cache
  - Installing symfony/framework-bundle (v3.4.22): Loading from cache
  - Installing symfony/yaml (v3.4.22): Loading from cache
Generating autoload files

So as you can see the composer load all packages from cache. I've try to clear composer cache like this:

$ composer clearcache 

but without result, the problem still exist.

My PHP Version is 7.3.1

Can anyone help me to resolve that problem?

  • 写回答

1条回答 默认 最新

  • dony39517 2019-02-05 10:53
    关注

    Try to pass the symfony version (4.2 for example) like that:

    composer create-project symfony/skeleton:4.2 my-project-symf-4
    

    Hope this helps!

    评论

报告相同问题?

悬赏问题

  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测