T
T
tj572017-03-28 01:55:02
PHP
tj57, 2017-03-28 01:55:02

How to solve the problem when updating composer?

I update composer this way: ...\php.exe ...\composer.phar update An
error like: [RuntimeException] Could not scan for classes inside 'project folder'\vendor/phpunit/php-file-iterator/src /" which does not appear to be a file nor a
folder

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Konyukhov, 2017-03-28
@piromanlynx

1. backup the vendor, composer.json, composer.lock folders
2. delete the vendor folder in your project.
3. run composer install (a new unbroken vendor will appear)
4. run composer update
If something went wrong, don't lose the backup)

K
Kirill Nesmeyanov, 2017-03-28
@SerafimArts

Obviously the file system is broken.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question