I don\'t know if this question has been asked, because searching finds results mostly about moving the libraries installation directory.
I have a globally installed comp
Sure, try composer install -h
. There you'll find an option --working-dir
(or -d
). And that's what you're looking for.
Then run:
composer install -d=/home/someuser/myproject
You can find more in composer docs.
Depending on your operating system, the =
might need to be removed:
composer install -d /home/someuser/myproject