Skip to content
Advertisement

Laravel Sail is not running on my macbook m1

I tried using Laravel 8 Sail on my Mac M1 Computer. I have successfully installed docker , php 7.4 & used composer to install Laravel. I am trying to use sail but I am stuck at the part which says

Could not open input file: /var/www/html/artisan

Below are the details:

Here is the docker file:

JavaScript

After running the command ./vendor/bin/sail up on my rosetta terminal , I am getting the following error:

JavaScript

Advertisement

Answer

After many tries , I discovered that the mounting of shared drive has issues due to permission. My project folder was in Document >> LaraProjects. I had to manually add the file sharing. So here is what I did :

Under the Docker Dashboard > settings > Resources > File Sharing , I clicked the plus sign to add directory and added Documents >> LaraProjects and it worked.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement