안녕하세요. Windows OS에 PHP 7.1.1을 설치했으며 PHP의 종속성 관리자로도 설치했습니다. 그럼 내가 Laravel 명령을 사용하여 설치 :XAMPP없이 Windows에 Laravel 설치
** 설치 laravel :
composer global require "laravel/installer"
그러나 그 후 나는 명령
을 사용하여 프로젝트를 만들려고 내가받을 다음과 같은 오류 /laravel (v5.3.16) - laravel/laravel (v5.3.16) 설치 캐시에서로드 중 test_blogs에 프로젝트 생성composer create-project --prefer-dist laravel/laravel test_blogs
php -r "file_exists('.env') || copy('.env.example', '.env');" 'php' is not recognized as an internal or external command, operable program or batch file. Script php -r "file_exists('.env') || copy('.env.example', '.env');" handling the post-root-package-install event returned with error code 1**
여기서 한가지 언급 할 것은 XAMPP 또는 WAMPP를 사용하지 않는 것입니다. 그리고 현재 MySQL은 또한
가능한 중복 http://stackoverflow.com/questions/31291317/php-is-not-recognized-as-internal-or-command-in-command-prompt) – castis
왜 xampp 또는 mysql을 사용하여 Laravel을 설치하겠습니까? –
왜냐하면 난 일할 필요가 없기 때문입니다. 데이터베이스와 함께. 나중에 서버로 실행합니다. –