0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

cakephp3 インストール時のエラー解決方法

Posted at

#cakephp3インストール時にターミナルにエラーが出た話

php composer.phar create-project --prefer-dist cakephp/app:^3.8 blog

上記コマンドでcakephp3をインストールしていた際、ターミナルに

Action required!                                                           
                                                                                
     The CakePHP plugin installer v1.3+ no longer requires the                  
     "post-autoload-dump" hook. Please update your app's composer.json          
     file and remove usage of                                                   
     Cake\Composer\Installer\PluginInstaller::postAutoloadDump   

上記のエラーが出た。
どうやらcomposer.jsonの

"post-autoload-dump": "Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump",
上記記述がもう不要だから消してと言っているらしい。

参考:CakePHP 4 インストール時などに plugin installer v1.3+ no longer ... が出た際の対応方法

スクリーンショット 2021-04-21 17.04.50.png

今回のディレクトリ「blog」内のcomposer.jsonを開き上記該当コードを削除し完了。

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?