I get this error when trying to pull localhost.
error: Warning: require(C:\xampp\htdocs\sync\vendor\autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\sync\config\bootstrap.php on line 23
using composer to install from the cakephp site here: http://book.cakephp.org/3.0/en/quickstart.html
Every time I try this is what I get along with some errors in the cmd here:
C:\xampp\htdocs>php composer.phar create-project --prefer-dist -s dev cakephp/app sync
Installing cakephp/app (dev-master ebdd94ef28cd742b90fc03a5f8cca46c6306ded2)
- Installing cakephp/app (dev-master master)
Loading from cache
Created project in sync
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for cakephp/cakephp 3.0.*-dev -> satisfiable by cakephp/cakephp[3.0.x-dev].
- cakephp/cakephp 3.0.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
Problem 2
- cakephp/cakephp 3.0.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/debug_kit 3.0.x-dev requires cakephp/cakephp 3.0.*-dev -> satisfiable by cakephp/cakephp[3.0.x-dev].
- Installation request for cakephp/debug_kit 3.0.*-dev -> satisfiable by cakephp/debug_kit[3.0.x-dev].
Update:
Interesting take. I have now installed the CakePHP 3 beta on 5 machines and not once have I seen this error again. After looking, I found this (tried all solutions they offered didn't work): CakePHP 3.0 installation: intl extension missing from system
Solution
I tried:
- Opening /xampp/php/php.ini
- Changing ;extension=php_intl.dll to extension=php_intl.dll (remove the semicolon)
- Copy all the /xamp/php/ic*.dll files to /xampp/apache/bin
- Restart apache in the Xampp control panel
For some strange reason, after I restarted apache several more times it just started working randomly out of nowhere 30 mins later. Something must have cached or required a hard reset.
But that finally did it. And it seems that my title was much more accurate for people to find than the other solved one. Hope this helps more people.