symfony: [ErrorException] mkdir(): No such file or directory

Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 4.0.5

I’m trying to install a new Symfony4 project using composer create-project on a Windows 10

running the command composer create-project symfony/skeleton my_project results in:

$ composer create-project symfony/skeleton skeleton
The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: HTTP request failed!
https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Installing symfony/skeleton (v4.0.5)
  - Installing symfony/skeleton (v4.0.5): Loading from cache
Created project in skeleton
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 21 installs, 0 updates, 0 removals
  - Installing symfony/flex (v1.0.62): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.6.0): Loading from cache
  - Installing symfony/console (v4.0.3): Loading from cache
  - Installing symfony/routing (v4.0.3): Loading from cache
  - Installing symfony/http-foundation (v4.0.3): Loading from cache
  - Installing symfony/yaml (v4.0.3): Loading from cache
  - Installing symfony/framework-bundle (v4.0.3): Loading from cache
  - Installing symfony/http-kernel (v4.0.3): Loading from cache
  - Installing symfony/event-dispatcher (v4.0.3): Loading from cache
  - Installing psr/log (1.0.2): Loading from cache
  - Installing symfony/debug (v4.0.3): Loading from cache
  - Installing symfony/finder (v4.0.3): Loading from cache
  - Installing symfony/filesystem (v4.0.3): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing symfony/dependency-injection (v4.0.3): Loading from cache
  - Installing symfony/config (v4.0.3): Loading from cache
  - Installing psr/simple-cache (1.0.0): Loading from cache
  - Installing psr/cache (1.0.1): Loading from cache
  - Installing symfony/cache (v4.0.3): Loading from cache
  - Installing symfony/dotenv (v4.0.3): Loading from cache
Writing lock file
Generating autoload files
Symfony operations: 4 recipes (386b6adb399f3520c3498e72a25f47e1)
  - Configuring symfony/flex (>=1.0): From github.com/symfony/recipes:master


  [ErrorException]
  mkdir(): No such file or directory


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’m using Windows 10 composer v1.6.2 php v.7.1.11 (xampp installation) bash: git console over windows cmd (git v2.15.1.windows.2)

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 7
  • Comments: 28 (1 by maintainers)

Most upvoted comments

You need to upgrade to Flex 1.0.63

It seems to work with symfony/flex 1.0.61. I have run: composer create-project --no-install symfony/skeleton your-dir then cded into it and changed symfony/flex dependency to 1.0.61. When I ran composer install it worked perfectly fine.