I am using php 5.4 and installing laravel 5.0.*.
When running the composer install, it fails at the end with this error message.
[RuntimeException] Could not scan for classes inside "C:\portal\vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Symfony/Component/HttpFoundation/ Resources/stubs" which does not appear to be a file nor a folder
It seems to have a problem with the classmap loading in the symfony/http-foundation composer.json which looks like this:
"autoload": {
"psr-0": { "Symfony\\Component\\HttpFoundation\\": "" },
"classmap": [ "Symfony/Component/HttpFoundation/Resources/stubs" ]
},
It looks like it having a conflict with the psr0 and classmap loading leading to the class map looking in:
C:/portal/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Symfony/Component/HttpFoundation/Resources/stubs
instead of
C:/portal/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Resources/stubs
The main projects composer.json looks like this:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"laravel/framework": "5.0.*",
"guzzlehttp/guzzle": "5.3.*"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"phpspec/phpspec": "~2.1"
},
"autoload": {
"psr-4": {
"App\\": "app/"
}
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-create-project-cmd": [
"php -r \"copy('.env.example', '.env');\"",
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist",
"platform": {
"php": "5.4.44"
}
}
}
Any ideas on how to get past this issue?
Other things I have already looked at:
I have already tried clear vendor/cache and re running install.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire