polyfill: Could not scan for classes inside "...polyfill-php73/Resources/stubs" which does not appear to be a fil e nor a folder
Composer noob trying to start a project with a boilerplate package that requires polyfill-php73 (among other things). I kept getting the error in the title of this issue. I finally deleted everything in the directory and tried to isolate this package to see if it was related to the myriad of other packages. Here’s what I got:
composer require symfony/polyfill-php73
Using version ^1.11 for symfony/polyfill-php73
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing symfony/polyfill-php73 (v1.11.0): Loading from cache
Writing lock file
Generating autoload files
Installation failed, deleting ./composer.json.
[RuntimeException]
Could not scan for classes inside "/srv/www/wordpress-one/public_html/wp-content/plugins/inpsyde-nonces/vendor/symfony/polyfill-php73/Resources/stubs" which does not appear to be a fil
e nor a folder
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...
composer -V shows: Composer version 1.8.6 2019-06-11 15:03:05
I don’t know if I’m doing something wrong or not. I’m trying to do a project with PHP 7.2 so I don’t think I even need this, but I’d like to use this particular boilerplate package to develop with. At any rate if someone could point me in the right direction for how to resolve this I’d be grateful. Thanks!
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 18 (6 by maintainers)
remove vendor folder and composer.lock help me
Cleaning composer cache worked for me:
composer clearcachePlease use english on this repository.
감사합니다, 너무너무 감사합니다!!!
version 2.0.4 work at me i update at version 2.0.4
composer self-update 2.0.4나는 당신과 똑같은 에러를 겪고 있는 개발자이다. 이 문제는 composer에 버전 문제로 보인다. 나는 winodw os 환경에서 composer 2.0.5 버전 사용시 이러한 문제가 있었고 composer를 2.0.4 로 다운그레이드 하니 해결되었다.
composer 홈페이지에서 2.0.4 버전의 composer.phar 파일을 다운로드 받아서 composer 설치폴더에 덮어 쓴후 터미널을 다시 열어 명령을 실행해 보기 바란다.
I am a developer who is getting the same error as you. This problem seems to be a version problem with composer. I had this problem when using composer 2.0.5 version in winodw os environment Downgrading composer to 2.0.4 solved it.
Download the 2.0.4 version of composer.phar file from the composer homepage and overwrite it in the composer installation folder. Please open the terminal again and run the command.
Same Problem Here, It’s affecting almost every project i try to create, including but not limited to Spryker and Behat, any fix for that?