【问题标题】:IBM Cloud PHP Getting started tutorial - Error with "php composer.phar install"IBM Cloud PHP 入门教程 - “php composer.phar install”出错
【发布时间】:2019-07-20 07:55:19
【问题描述】:

我正在尝试在 Windows 10 机器上完成 IBM Cloud PHP 入门教程this

我尝试使用 PHP 7.3 (7.3.2)(下载文件名为 php-7.3.2-nts-Win32-VC15-x64.zip)。

我已经安装了“VC15 版本需要 Visual C++ Redistributable for Visual Studio 2017 x64”(vc_redist.x64.exe)

在第 2 步中,

php composer.phar install

我得到了错误

C:\temp\get-started-php>php composer.phar install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file 

[ErrorException] "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? 

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]... 

我已查看“警告:“继续”定位开关等同于“中断”。您的意思是使用“继续 2”吗?在this post in stackoverflow 并尝试了composer updatecomposer self-update

我仍然收到"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? 错误。

感谢任何有关如何解决此问题的建议。

【问题讨论】:

    标签: php ibm-cloud


    【解决方案1】:

    是的,这是php 7.3的新人

    您可以尝试composer self-update 或下载最新版本的composer.phar。

    如果错误是在第三方库中抛出的,除了用它们开票之外,你几乎无能为力。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-25
      相关资源
      最近更新 更多