Thanks please anyone suggest me what i am doing wrong in installation?enter image description here
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
the problem first is to properly clean out your 'old' PHP based install -> Remove composer - but there are a number of answers posted there. Once you've done that, I would do an npm uninstall -g composer-cli
etc etc then follow the doc link you referred to earlier.
Failing that, create a new user (or new environment) that does not have a prior footprint of your 'old' Composer PHP environment. Composer (CLI, Playground etc) should install quite happily once that is achieved per prereqs and main install docs here