简体   繁体   English

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

[英]IBM Cloud PHP Getting started tutorial - Error with “php composer.phar install”

I am trying to complete the IBM Cloud PHP Getting started tutorial at this on a Windows 10 machine. 我试图完成IBM云PHP入门教程在一个Windows 10的机器上。

I tried using PHP 7.3 (7.3.2) (download file name is php-7.3.2-nts-Win32-VC15-x64.zip). 我尝试使用PHP 7.3(7.3.2)(下载文件名为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) 我已经安装了“ VC15版本需要具有Visual Studio 2017 x64的Visual C ++可再发行组件”(vc_redist.x64.exe)

In step 2, 在步骤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”?" 我评论了“警告:“继续”定位开关等效于“中断”。您是要使用“继续2”吗?” at this post in stackoverflow and tried both composer update and composer self-update . 在stackoverflow的这篇文章中 ,尝试了composer updatecomposer self-update

I still get the "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? 我仍然可以看到"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? error. 错误。

Any suggestions on how to resolve this is appreciated. 任何有关如何解决此问题的建议表示赞赏。

Yes, this one is new in php 7.3 是的,这是php 7.3中的新功能

you can try composer self-update or download the latest version of composer.phar. 您可以尝试composer self-update或下载composer.phar的最新版本。

If the error is thrown in a third-party library, you can hardly do more then opening tickets with them. 如果错误是在第三方库中引发的,则您只能执行其他操作然后再打开票证。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM