Following a tutorial found here:
https://www.youtube.com/watch?v=5N6gTVCG_rw&t=9s
Following the tutorial exactly, when I get to around the 11:48 minute mark, where I am supposed to run the command:
composer create-project laravel/laravel .
To which the terminal response is:
zsh: command not found: composer
Not sure if this is necessary, but here is my docker-composer.yml file:
version: '3'
networks:
laravel:
services:
nginx:
image: nginx:stable-alpine
container_name: nginx
ports:
- "8088:80"
volumes:
- ./src:/var/www/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
- mysql
networks:
- laravel
mysql:
image: mysql:5.7.22
container_name: mysql
restart: unless-stopped
tty: true
ports:
- "4306:3306"
volumes:
- ./mysql:/var/lib/mysql
environment:
MYSQL_DATABASE: homestead
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: secret
SERVICE_TAGS: dev
SERVICE_NAME: mysql
networks:
- laravel
php:
build:
context: .
dockerfile: Dockerfile
container_name: php
volumes:
- ./src:/var/www/html
ports:
- "9000:9000"
networks:
- laravel
I had to install homebrew before I could install composer using the commands from the composer website.
The terminal confirmed that Composer version 1.10.10 was successfully installed.
Regardless, I'm still getting "command not found: composer" in the terminal.
How do I fix this?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire