You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I began spinning up a new Craft 5 install and received "failed to open stream" error (see full error under Additional Info) when attempting to run the ddev composer create command in the Craft 5 documentation.
Issue was resolved by adding --no-scripts to the command:
Executing Composer command: [composer create-project craftcms/craft --no-install /tmp/sMTRzY]
Creating a "craftcms/craft" project at "/tmp/sMTRzY"
Installing craftcms/craft (5.3.2)
- Installing craftcms/craft (5.3.2): Extracting archive
Created project in /tmp/sMTRzY
> @php -r "file_exists('.env') || copy('.env.example.dev', '.env');"
> @php -r "unlink('composer.json');"
> @php -r "rename('composer.json.default', 'composer.json');"
> @php craft install
PHP Warning: require_once(/tmp/sMTRzY/vendor/autoload.php): Failed to open stream: No such file or directory in /tmp/sMTRzY/bootstrap.php on line 11
Warning: require_once(/tmp/sMTRzY/vendor/autoload.php): Failed to open stream: No such file or directory in /tmp/sMTRzY/bootstrap.php on line 11
PHP Fatal error: Uncaught Error: Failed opening required '/tmp/sMTRzY/vendor/autoload.php' (include_path='.:/usr/share/php') in /tmp/sMTRzY/bootstrap.php:11
Stack trace:
#0 /tmp/sMTRzY/craft(8): require()
#1 {main}
thrown in /tmp/sMTRzY/bootstrap.php on line 11
Fatal error: Uncaught Error: Failed opening required '/tmp/sMTRzY/vendor/autoload.php' (include_path='.:/usr/share/php') in /tmp/sMTRzY/bootstrap.php:11
Stack trace:
#0 /tmp/sMTRzY/craft(8): require()
#1 {main}
thrown in /tmp/sMTRzY/bootstrap.php on line 11
Script @php craft install handling the post-create-project-cmd event returned with error code 255
Failed to create project:exit status 255, stderr=
Craft version: Craft 5
PHP version: 8.2
Database driver & version: N/A
Plugins & versions: N/A
The text was updated successfully, but these errors were encountered:
Description
I began spinning up a new Craft 5 install and received "failed to open stream" error (see full error under Additional Info) when attempting to run the ddev composer create command in the Craft 5 documentation.
Issue was resolved by adding --no-scripts to the command:
Steps to reproduce
See steps 1-3 under Craft 5 install Quick Start guide.
Additional info
The text was updated successfully, but these errors were encountered: