In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
The purpose of this article is to share with you what to do if the composer command is invalid under windows. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
Installation method: http://docs.phpcomposer.com/00-intro.html#Installation-Windows (official Chinese help document) problem description 1: the command is invalid after installation through the Composer-Setup.exe installer, as shown below:
Solution: check whether the system environment is automatically configured. If not, append the Path variable: C:\ ProgramData\ ComposerSetup\ bin, open cmd and enter composer-v. The installation is successful and can be accessed globally as shown below.
Change to any directory and test composer-v again, which shows that the installation is successful as follows.
-Separator line-problem description 2: manual installation failed through the installation command, as shown below:
Solution: error prompt does not support PHP5.5.12 Composer, update PHP version 5.6 and above re-install through the command, before installation, please cd to the installation directory (you can create your own specified directory), for example:
C:\ Users\ username > cd D: switch to disk D.
C:\ Users\ username > cd D:\ Composer switch to the Composer folder (the installation directory you created)
D:\ Composer > php-r "readfile ('https://getcomposer.org/installer');" | php executes the installation command. Starting from this step and after that, as with the tutorials in the official documentation, please check to complete the follow-up operations.
For the file path after installation, you can only execute the composer-v command in this directory, that is, it can only be accessed locally.
For global access, you need to configure the system environment variable by appending the Path variable: d:\ Composer (please modify it according to your own installation directory)
Thank you for reading! On the windows under the composer command invalid how to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.