dougong5285 2019-02-26 17:35
浏览 277

IBM Cloud PHP入门教程 - “php composer.phar install”出错

I am trying to complete the IBM Cloud PHP Getting started tutorial at this on a Windows 10 machine.

I tried using PHP 7.3 (7.3.2) (download file name is php-7.3.2-nts-Win32-VC15-x64.zip).

I had already installed "The VC15 builds require to have the Visual C++ Redistributable for Visual Studio 2017 x64" (vc_redist.x64.exe)

In step 2,

php composer.phar install

I get the error

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>]... 

I have reviewed "Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”?" at this post in stackoverflow and tried both composer update and composer self-update.

I still get the "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? error.

Any suggestions on how to resolve this is appreciated.

  • 写回答

1条回答 默认 最新

  • dt97868 2019-06-16 21:41
    关注

    Yes, this one is new in php 7.3

    you can try composer self-update or download the latest version of composer.phar.

    If the error is thrown in a third-party library, you can hardly do more then opening tickets with them.

    评论

报告相同问题?

悬赏问题

  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端