"Unable to decode zlib stream window" — Composer error?

 

error.

If you came to this page by searching for this error in Google, then I think you have tried all the ways to install Composer on your PC, but it didn't work, right?
You may encounter this error "Unable to decode zlib stream".

This happens due to the following reasons.

  • There may be some internet connection issues.
  • Maybe the PHP directory configuration in "Environment Variables" is incorrect.
  • Maybe you are not running the latest version of PHP.

Will be resolved soon!

  1. Create a folder in any drive.
  2. Name it "Composer" or whatever name you like.
  3. Now in that folder
  4. Go to the address bar, type "notepad", and press Enter!
  5. Write the code given below in the file!

@ECHO OFF
Php“%〜dp0composer.phar”%*

  1. Save as composer.bat in this folder.
  2. Download the latest snapshot from the Composer site. The "Composer.phar" file will be downloaded!
  3. Paste it into the same directory as the composer.bat file created above.
  4. Again, go to the address bar, type "cmd" and press Enter.
  5. In the command prompt (cmd), type "composer" and press Enter.
  6. If you see the word "composer" with text animation that is bigger than my friend, then you have passed the exam. If this step does not work, please share a comment.
  7. Now, copy the "Composer" named folder.
  8. Paste it into "C:\Users\  Username  \AppData\Roaming". The username will be your computer's login name.
  9. Now, open cmd again → type "composer" → press Enter. If you see a large font "Composer" as the output is better than doing it.
  10. You have successfully installed Composer globally!
  11. If step 9 does not work, follow the steps below!
  12. Press Windows + E→Right click→Properties.
  13. Click Advanced System Settings→Environment Variables under the Advanced Tab→Edit "Path"→Add "C:\Users\  User Name  \AppData\Roaming\Composer".
  14. Click "OK", "OK" and "OK" until you enter the desktop!
  15. Now repeat step 9. If it fails, please mention the error in the comment section.

I hope this works! If you see this error on your friend's PC or elsewhere, please share this article and he may give you some gifts to solve the error!

Guess you like

Origin blog.csdn.net/taotaobaobei/article/details/107462704