Skip to content

How to install Magento 2 on Macbook Air M1, running Ventura?

I tried manually installing magento 2 using the command:

php bin/magento setup:install 
--base-url=http://localhost/m2/ 
--db-host=localhost 
--db-name=m2 
--db-user=root 
--db-password=root 
--admin-firstname=Vladimir 
--admin-lastname=Despotovic 
[email protected] 
--admin-user=admin 
--admin-password=admin123 
--language=en_US 
--currency=USD 
--timezone=America/New_York 
--use-rewrites=1

I also tried using the warden installation, in details and I tried several bugfixes myself with it – once it didn’t run correctly (the M2 did not successfully finish the installation):

https://github.com/wardenenv/

I also tried this method:

https://magetu.com/how-to-install-magento-2-4-5-with-warden/?i=1

I Also tried the oneliner method:

https://github.com/markshust/docker-magento

getting this error (among many other before it, that I kind of circumvented):

Error response from daemon: error while creating mount source path '/host_mnt/Applications/MAMP/htdocs/m2/src/app/design': mkdir /host_mnt/Applications/MAMP/htdocs/m2/src: no such file or directory

and if I create that directory manually, just to cheat the Docker, then I get this:

Error response from daemon: error while creating mount source path '/host_mnt/Applications/MAMP/htdocs/m2/src/composer.lock': mkdir /host_mnt/Applications/MAMP/htdocs/m2/src: no such file or directory

Or sometimes this error:

chmod: cannot access 'bin/magento': No such file or directory

and nothing worked. Do you know what is a strightforward way to install, or, just a method that worked for you, on Mac OS Ventura? I am tired of trying….Thanks in advance for any help on this.