Error in Composer when trying to create a Cakephp project

Asked

Viewed 105 times

0

I’m using a Linux (Ubuntu) virtual machine to develop a Cakephp project. I’ve installed everything he needs (Apache, PHP, Mysql, Curl, Git, INTL and Composer).

So far, so good, until I tried to create the Cakephp project with Composer. It simply stops and shows the message below:

  [Composer\Downloader\TransportException]  
  Content-Length mismatch                   


create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]

I’ve researched several places, but it seems to be a kind of generic Composer problem, and so far I haven’t found anything that could help me. If anyone knows anything, please give me a hand. I appreciate.

Follow screenshot of Terminal error:

inserir a descrição da imagem aqui

  • what version of php? checks if the mbstring extension is installed.

  • I am using version 5.6 of PHP. I did not find the mbstring package to install by apt-get. How do I know if it is installed?

  • Executes the command php -i | grep mbstring or php --re mbstring or php --ri mbstring .

  • Seems to be installed. When I run the above command it shows several lines with values for mbstring.detect_order, mbstring.encoding..`, etc.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.