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 5 years have passed since last update.

WSL + ubuntu + docker で Composer 実行時にerrorする場合

Posted at

こんなエラーが出た。

[ErrorException]
  file_put_contents(/var/www/vendor/bin/psysh): failed to open stream: No such file or directory

コンテナ内でシンボリックリンクが張れていない。

root@380bcf931eed:/var/www# ll /var/www/vendor/bin/psysh
ls: cannot read symbolic link '/var/www/vendor/bin/psysh': No such file or directory
l--------- 1 root root 0 Oct 28 02:57 /var/www/vendor/bin/psysh

マウント元確認

lrwxrwxrwx 1 erySandriver erySandriver   22 Oct 28 11:57 psysh -> ../psy/psysh/bin/psysh*

コンテナ内で同様に貼りなおす

root@380bcf931eed:/var/www/vendor/bin# rm psysh
root@380bcf931eed:/var/www/vendor/bin# ln -s psysh ../psy/psysh/bin/psysh

手動で無理やり感満載だけど、できた。

root@380bcf931eed:/var/www# composer update
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Discovered Package: barryvdh/laravel-debugbar
Discovered Package: encore/laravel-admin
Discovered Package: facade/ignition
Discovered Package: fideloper/proxy
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Package manifest generated successfully.
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?