首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在wamp64 cakephp3 upgrade上使用composer.phar

在wamp64 cakephp3 upgrade上使用composer.phar
EN

Stack Overflow用户
提问于 2017-07-13 08:34:01
回答 2查看 247关注 0票数 0

我正在使用wamp64,我想升级到cakephp3的最新稳定版本。我的当前版本是3.2.x

我从安装名为crm的cakephp应用程序的位置运行该命令。我从文档中运行了这个,但它不工作。

php composer.phar需要"cakephp/cakephp:3.4.*“

错误:无法打开输入文件: composer.phar查找了这个问题,谁能告诉我在wamp64上运行升级的官方方式是什么?

Running Composer returns: "Could not open input file: composer.phar"

代码语言:javascript
复制
{
    "name": "cakephp/app",
    "description": "CakePHP skeleton app",
    "homepage": "http://cakephp.org",
    "type": "project",
    "license": "MIT",
    "require": {
        "php": ">=5.5.9",
        "cakephp/cakephp": "~3.2",
        "mobiledetect/mobiledetectlib": "2.*",
        "cakephp/migrations": "~1.0",
        "cakephp/plugin-installer": "*"
    },
    "require-dev": {
        "psy/psysh": "@stable",
        "cakephp/debug_kit": "~3.2",
        "cakephp/bake": "~1.1"
    },
    "suggest": {
        "phpunit/phpunit": "Allows automated tests to be run without system-wide install.",
        "cakephp/cakephp-codesniffer": "Allows to check the code against the coding standards used in CakePHP."
    },
    "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",
        "post-autoload-dump": "Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump"
    },
    "minimum-stability": "stable",
    "prefer-stable": true
}
EN

回答 2

Stack Overflow用户

发布于 2017-07-13 23:20:20

您需要将composer.phar文件放在从中运行命令的目录中。假设它在您的代码目录中,验证composer.phar文件是否存在。.phar是一个php存档文件,或者为了更简单的理解,它是一个自包含的应用程序。如果该文件不存在,您将无法运行和composer命令。

很可能你需要做的就是安装composer.https://getcomposer.org/doc/00-intro.md#installation-windows

票数 0
EN

Stack Overflow用户

发布于 2018-12-17 14:00:54

在我的例子中,我也面临着同样的问题。我已经将我的项目从cakephp3.5升级到3.7。我已经通过以下命令解决了这个问题-(要运行这个命令,请确保您的composer是全局安装的)

composer要求--使用依赖关系更新"cakephp/cakephp:3.7.*“

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

https://stackoverflow.com/questions/45069637

复制
相关文章

相似问题

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