LoginSignup
5
6

More than 3 years have passed since last update.

Laravel5.5のcomposer installができない(できた)

Last updated at Posted at 2019-07-17

RuntimeExceptionってなんやねん

VagrantとVirtualBoxでLaravel5.5の仮想環境を構築していたところ、以下のようにエラーが出て先へ進めなくなりました。

[RuntimeException]                                                                                 
  Could not delete /home/vagrant/code/sampleapp/vendor/kylekatarnls/
update-helper/src/UpdateHelper:  

どうやらvendorディレクトリ内の
vendor/kylekatarnls/
update-helper/src/UpdateHelper
が悪さをしているようです。多分composerの実行権限とかそこらへんが原因だと思いますが、うまく解消できませんでした。

解決法

Laravelプロジェクトの該当ディレクトリ内で、以下のコマンドを用いて、composerでインストールを行うときに余計なスクリプトを実行しないようにして再インストールしたところ、無事にインストールを行うことができました!

$ cd sampleapp
$ composer install --no-plugins

まとめ

このオプションをつけたことによる副作用は未調査なので、後々また検証した結果載せたいと思います。
このエラーで2時間ほど溶かして死ぬかと思いました。

5
6
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
5
6