0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Laravelで、「laravel new [アプリ名]」の実行が失敗する場合の対策

Last updated at Posted at 2021-11-22

Laravelでアプリケーションをnewしようとしたとき、メモリ不足などのエラーが出てスムーズにいかなかった。
結果として、以下の「3つの対策」で通ったので、備忘録としてメモ。(2021/11/22)

対策1:composerのバージョンを1から2へアップグレード

下記をコマンドラインで実行すればOK

$ composer self-update --2

対策2:php.iniで、phpのメモリ制限を「無制限」に変更

php.iniのlimit_memoryを-1(無制限)に変更する

対策3:php.iniに、php_fileinfo.dllを追加

php.iniに以下を追加

「extension=php_fileinfo.dll」

まとめ

上記3つの対策後、再度

$ laravel new test

などとすることで、無事成功しました。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?