How to install Acorn and Sage after installing Trellis

I have installed Trellis and got it running with vagrant up. Now I want to install Acorn and Sage. In doing so, I cd into the site directory on the host machine and run the install commands as detailed in both docs. However, after running the commands I get the following error: “env: php: No such file or directory”.

This is on a Macbook Pro with the latest OS and M2 processor.

Any help will be greatly appreciated.

Based on doing a search for the error message you provided, it sounds like you need to update your PATH variable.

But since you’re using Trellis, you’ll want to run composer commands from the VM instead of your host machine.

1 Like

Thanks Ben! Mentioning to run composer commands from the VM worked like a dream.

1 Like