【发布时间】:2017-12-17 14:05:57
【问题描述】:
我正在使用 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"
{
"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
}
【问题讨论】:
-
先尝试更新作曲家
php composer.phar update -
嗯,文件存在吗?
-
我有一个名为 composer.json 的文件,如上所述。在 Windows 中,您显然不使用该命令 php composer.phar require "cakephp/cakephp:3.4.*"
标签: cakephp cakephp-3.0