首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法再次安装cakephp 4

无法再次安装cakephp 4
EN

Stack Overflow用户
提问于 2020-12-22 07:08:12
回答 1查看 111关注 0票数 0

我有wamp64,php7.4,使用composer,我在控制台上运行

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

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

安装在接近尾声时被切掉,出现此错误

代码语言:javascript
复制
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文件

代码语言:javascript
复制
{
    "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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-01-17 19:13:46

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

代码语言:javascript
复制
composer create-project --prefer-dist cakephp/app:~4.0 cake

这对我很管用。或者,下载Cakephp4.0版,将内容放在www文件夹中,然后通过文件/config/app.php手动配置它。如果你愿意,我们可以一起看。我周围没有多少人能够或想要在Cakephp上工作,所以这将是一种乐趣。:)

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65401172

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档