Skip to content

Instantly share code, notes, and snippets.

@ederrafo
Created September 2, 2019 21:02
Show Gist options
  • Save ederrafo/95648320cb3f5d28276158471987545a to your computer and use it in GitHub Desktop.
Save ederrafo/95648320cb3f5d28276158471987545a to your computer and use it in GitHub Desktop.
composer errors
========================================================================================================================
# $ sudo composer install
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
In Compiler.php line 36:
Please provide a valid cache path.
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
Solution
create these folders under storage/framework:
- sessions
- views
- cache
Try this:
php artisan cache:clear
php artisan config:clear
php artisan view:clear
========================================================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment