라라벨 인스톨러 설치 (command not found)

라라벨 인스톨러 설치

composer를 사용하여 라라벨 프로젝트를 설치하는 방법도 있지만

laravel new blog 와 같은 명령어를 사용하여 프로젝트를 생성하는 방법도 있다.

1
2
3
$ composer global require "laravel/installer"

$ cd ~

command not found일 경우

위와 같이 컴포저로 라라벨 인스톨러를 전역설치 한 후에 다시 홈 디렉토리로 온다.

.bashrc와 같은 파일을 열고

1
2
3
4
# ~/.bashrc
export PATH="$PATH:$HOME/.composer/vendor/bin"

# 이것을 추가한다.

또는 명령어를 활용하여

1
echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc

그리고 추가된 한 줄을 반영해야 한다.

1
source ~/.bashrc

source명령어를 이용하여 반영해도 되고, 터미널을 종료 후 다시 실행해도 적용된다.

~/.bashrc가 없다면 ~/.bash_profile등에 추가하여도 무관하다.

라라벨 인스톨러 설치 (command not found)

https://hwiveloper.github.io/2017/07/28/laravel-installer/

Author

hwiVeloper

Posted on

2017-07-28

Updated on

2022-12-29

Licensed under

You need to set install_url to use ShareThis. Please set it in _config.yml.
You forgot to set the business or currency_code for Paypal. Please set it in _config.yml.

댓글

You forgot to set the shortname for Disqus. Please set it in _config.yml.