0
0

More than 3 years have passed since last update.

macOSでLaravelの環境構築でつまずいた

Last updated at Posted at 2020-03-09

macOSでLaravelの開発環境を構築した時に、引っかかった箇所とその解決方法です。
いくつかのサイトやQiitaの記事を参考にしたので、同じようなパターンでハマった人がいたら参考にしてみてください。

使用環境

  • macOS Catalina
  • PHP version 7.3.8
  • composer version 1.9.2
  • Laravel installer 3.0.1

やったこと

下記を書いている方と奇跡的に開発環境が同じだったので、書かれている内容を踏襲して実行しました。
macOS CatalinaにしてからLaravelの環境設定が詰まった

一通り良さそうなのでLaravelのプロジェクトを作ってみる

$ laravel new sampleApp

エラー

[InvalidArgumentException]                                
  Script "post-install-cmd" is not defined in this package

composerのアップデートの問題らしいので以下を実行

$ composer global update

できた!

$ laravel new laravelApp
Crafting application...
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock 
~
~
Package manifest generated successfully.
Application ready! Build something amazing.

参考サイト

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0