nystudio107/craft

`vendor/craftcms` does not exist and could not be created

Closed this issue · 3 comments

Describe the bug

/var/www/project/cms/vendor/craftcms does not exist and could not be created.

To reproduce

Steps to reproduce the behaviour:

  1. Make a new project with the following command: composer create-project nystudio107/craft craft002 --no-install --remove-vcs
  2. cd into that new project.
  3. Run make dev. The php container eventually throws an error /var/www/project/cms/vendor/craftcms does not exist and could not be created.

Expected behaviour

Expected to work normally with no errors.

Output

Creating a "nystudio107/craft" project at "./craft002"
Installing nystudio107/craft (2.4.41)
  - Installing nystudio107/craft (2.4.41): Extracting archive
Created project in /Users/cavellblood/webdev/docker-testing/craft002
> @php -r "copy('./cms/example.env', './cms/.env');"
> @php -r "copy('./scripts/example.env.sh', './scripts/.env.sh');"
> @php -r "@unlink('composer.json');"
> @php -r "@unlink('composer.lock');"
> @php -r "@unlink('LICENSE.md');"
> @php -r "@unlink('README.md');"
make dev
php_1         |
php_1         |
php_1         |   [RuntimeException]
php_1         |   /var/www/project/cms/vendor/craftcms does not exist and could not be created.
php_1         |
php_1         |
php_1         | Exception trace:
php_1         |  () at phar:///usr/local/bin/composer/src/Composer/Util/Filesystem.php:252
php_1         |  Composer\Util\Filesystem->ensureDirectoryExists() at phar:///usr/local/bin/composer/src/Composer/Downloader/DownloadManager.php:185
php_1         |  Composer\Downloader\DownloadManager->download() at phar:///usr/local/bin/composer/src/Composer/Installer/LibraryInstaller.php:97
php_1         |  Composer\Installer\LibraryInstaller->download() at phar:///usr/local/bin/composer/src/Composer/Installer/PluginInstaller.php:60
php_1         |  Composer\Installer\PluginInstaller->download() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:330
php_1         |  Composer\Installer\InstallationManager->downloadAndExecuteBatch() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:266
php_1         |  Composer\Installer\InstallationManager->execute() at phar:///usr/local/bin/composer/src/Composer/Installer.php:706
php_1         |  Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:543
php_1         |  Composer\Installer->doUpdate() at phar:///usr/local/bin/composer/src/Composer/Installer.php:247
php_1         |  Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/InstallCommand.php:137
php_1         |  Composer\Command\InstallCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:245
php_1         |  Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:835
php_1         |  Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:185
php_1         |  Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:312
php_1         |  Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:117
php_1         |  Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:125
php_1         |  Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:64
php_1         |  require() at /usr/local/bin/composer:24
php_1         |
php_1         | install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-scripts] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>]...
php_1         |
craft002_php_1 exited with code 1

Versions

  • Plugin version: 2.4.41
  • Craft version: 3.6.9

What version of Docker are you running? My guess is you're running the latest (3.4) -- it has a bug that would cause this:

docker/for-mac#5748

If you are running 3.4, downgrade to 3.3.3 for now:

https://docs.docker.com/docker-for-mac/release-notes/#docker-desktop-333

Downgrade to 3.3.3 until they fix it