Wednesday, February 9, 2022

[FIXED] ErrorException chdir(): No such file or directory (errno 2) when trying to create a laravel project

Issue

When I try to create a new Laravel project I get this error:

c:\xampp\htdocs>composer create-project --prefer-dist laravel/laravel blog
Creating a "laravel/laravel" project at "./blog"
Installing laravel/laravel (v8.4.0)
  - Installing laravel/laravel (v8.4.0): Extracting archive
Created project in C:\xampp\htdocs\blog


  [ErrorException]
  chdir(): No such file or directory (errno 2)

I'm using XAMPP by the way.


Solution

Please try this:

composer self-update


Answered By - RafaelCorreia

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.