无法再次安装 cakephp 4

问题描述

我有 wamp64PHP 7.4 并且使用 composer 我从控制台运行了这个

composer create-project --prefer-dist "cakePHP/app:^4.0" myapp

composer create-project --prefer-dist cakePHP/app:~4.0 my_app_name

安装结束时出现此错误

Script App\Console\Installer::postInstall handing the post create project cmd event terminated with an exception 

[Symfony\Component\Console\Exception\RunTimeException\ Aborted
and some Symfony runtime exception when you get to the set folder permission y/n 

它创建了这个 JSON 文件

{
    "name": "cakePHP/app","description": "CakePHP skeleton app","homepage": "https://cakePHP.org","type": "project","license": "MIT","require": {
        "PHP": ">=7.2","cakePHP/cakePHP": "~4.2.0","cakePHP/migrations": "^3.0","cakePHP/plugin-installer": "^1.3","mobiledetect/mobiledetectlib": "^2.8"
    },"require-dev": {
        "cakePHP/bake": "^2.3","cakePHP/cakePHP-codesniffer": "~4.2.0","cakePHP/debug_kit": "^4.4","josegonzalez/dotenv": "^3.2","PHPunit/PHPunit": "~8.5.0 || ^9.3","psy/psysh": "@stable"
    },"suggest": {
        "markstory/asset_compress": "An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.","dereuromark/cakePHP-ide-helper": "After baking your code,this keeps your annotations in sync with the code evolving from there on for maximum IDE and PHPStan/Psalm compatibility.","PHPstan/PHPstan": "PHPStan focuses on finding errors in your code without actually running it. It catches whole classes of bugs even before you write tests for the code."
    },"autoload": {
        "psr-4": {
            "App\\": "src/"
        }
    },"autoload-dev": {
        "psr-4": {
            "App\\Test\\": "tests/","Cake\\Test\\": "vendor/cakePHP/cakePHP/tests/"
        }
    },"scripts": {
        "post-install-cmd": "App\\Console\\Installer::postInstall","post-create-project-cmd": "App\\Console\\Installer::postInstall","check": [
            "@test","@cs-check"
        ],"cs-check": "PHPcs --colors -p  src/ tests/","cs-fix": "PHPcbf --colors -p src/ tests/","stan": "PHPstan analyse","test": "PHPunit --colors=always"
    },"prefer-stable": true,"config": {
        "sort-packages": true
    }
}

How to Fix Cakephp 4 Composer Install Error

(我不明白这个问题的解决方案) Cakephp 4 Windows Installation Issues

解决方法

应该可以让它工作。你使用什么 Windows 版本?专业版还是家庭版?哪个分布? 2010年? 请确保导航到 WAMP 安装文件夹,然后是 www 文件夹。 我使用的命令是这个;

composer create-project --prefer-dist cakephp/app:~4.0 cake

它对我有用。 或者,下载 Cakephp 4.0 版,将内容放在 www 文件夹中,并通过文件 /config/app.php 手动配置。如果你愿意,我们可以一起看。我周围没有多少人可以或想要在 Cakephp 上工作,所以很高兴。 :)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...