我无法使用 Php 7.3 在 GCP 上部署新的 Laravel 安装。在 Php 7.2 ( runtime: php72) 上它可以工作,但我无法在 GCP 中使用 artisan,因为作曲家不会让我安装 ( composer install) 导致此错误,即使我的模拟是"mockery/mockery": "1.3.1":mockery/mockery 1.4.1 requires php ^7.3 || ^8.0 -> your PHP version (7.2.32) does not satisfy that requirement我本地计算机上当前的 PHP 版本是: PHP 7.3.20 。我的 app.yaml 文件:runtime: php73env: flexruntime_config: document_root: public# Ensure we skip ".env", which is only for local developmentskip_files: - .envenv_variables: # Put production environment variables here. APP_LOG: errorlog APP_KEY: base64:JTS6tuNNbTilw0275mq7hQe6DN7wrlLZPD8W0bELZHk=beta_settings: cloud_sql_instances: xxxx我的composer.json 文件是:{ "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.", "keywords": [ "framework", "laravel" ], "license": "MIT", "require": { "php": "^7.3", "fideloper/proxy": "^4.2", "fruitcake/laravel-cors": "^1.0", "guzzlehttp/guzzle": "^6.3", "laravel/framework": "^7.0", "laravel/tinker": "^2.0", "laravel/ui": "^2.1", "pusher/pusher-php-server": "^4.1" }, "require-dev": { "fzaninotto/faker": "^1.9.1", "mockery/mockery": "^1.4.0", "nunomaduro/collision": "^4.1", "phpunit/phpunit": "^8.5" }, "config": { "optimize-autoloader": true, "preferred-install": "dist", "sort-packages": true }, "extra": { "laravel": { "dont-discover": [] } }, "autoload": { "psr-4": { "App\\": "app/" }, "classmap": [ "database/seeds", "database/factories" ] },我尝试更改composer.json的版本以匹配Php 7.3,但没有成功。
1 回答
哆啦的时光机
TA贡献1779条经验 获得超6个赞
您还有这个问题吗?如果这样做,请尝试删除嘲笑并在将composer.json更改为7.3时进行composer更新后使用composer require安装它
- 1 回答
- 0 关注
- 91 浏览
添加回答
举报
0/150
提交
取消