dougong5285 2019-02-26 09:35
浏览 279

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 13: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.

    评论
    编辑
    预览

    报告相同问题?

    手机看
    程序员都在用的中文IT技术交流社区

    程序员都在用的中文IT技术交流社区

    专业的中文 IT 技术社区,与千万技术人共成长

    专业的中文 IT 技术社区,与千万技术人共成长

    关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

    关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

    客服 返回
    顶部