# How to solve 'failed to open stream' when executing bin/console?

**URL:** <https://forum.shopware.com/t/how-to-solve-failed-to-open-stream-when-executing-bin-console/72314>\
**Category:** Installation/Einstieg\
**Created:** [25. Januar 2021 um 09:27 UTC](https://forum.shopware.com/t/how-to-solve-failed-to-open-stream-when-executing-bin-console/72314 "2021-01-25T09:27:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Genji](https://avatars.discourse-cdn.com/v4/letter/g/cc9497/32.png) [@Genji](https://forum.shopware.com/u/Genji)\
**Post date:** [25. Januar 2021 um 09:27 UTC](https://forum.shopware.com/t/how-to-solve-failed-to-open-stream-when-executing-bin-console/72314/1 "2021-01-25T09:27:08Z")

</div>

Hello,

I have just installed vagrant for shopware like described here ‚[shopwareLabs/shopware-platform-vagrant](https://docs.shopware.com/en/shopware-platform-dev-en/system-guide/system-installation-guides/vagrant?category=shopware-platform-dev-en/system-guide/system-installation-guides)‘ on OSX.  
I can do vagrant ssh. But when I execute ‚./bin/console‘ I got an error:

```
PHP Warning: require(/home/vagrant/shopware-dev/bin/../vendor/autoload.php): failed to open stream: No such file or directory in /home/vagrant/shopware-dev/bin/console on line 20PHP Fatal error: require(): Failed opening required '/home/vagrant/shopware-dev/bin/../vendor/autoload.php' (include_path='.:/usr/share/php') in /home/vagrant/shopware-dev/bin/console on line 20

```

It is because the vendor folder is not there. So I thought I have to execute ‚composer install‘.  
So, when I do that I got this warning and error:

```
Warning from https://packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2

In RemoteFilesystem.php line 305:

  Content-Length mismatch, received 244853 bytes out of the expected 291227

```

How can this be resolved?

I have tried to update composer, but I got this error:

```
Command "self-update" is not defined.

```

&nbsp;
