In my laravel 5.8 app I managed to generate file with spatie/browsershot and download it ok,
but to run it locally at my Ubuntu 18 I had ro run
npm i puppeteer#next
as I got error :
Error Output: ================ module.js:549 throw err; ^ Error: Cannot find module 'puppeteer' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load
This decision I found at https://github.com/GoogleChrome/puppeteer/issues/2119 branch.
But after I installed the app at my server I got error :
The command "PATH=$PATH:/usr/local/bin NODE_PATH=`npm root -g` node '/var/www/html/votes/vendor/spatie/browsershot/src/../bin/browser.js' '{"url":"file:\/\/\/tmp\/0046339001562826751\/index.html","action":"pdf","options":{"path":"generate_profile_card_ohTcbPxIiVNo5CUp8nIDJHbO8mKU2MhwCq4UFIbB_filename.pdf","args":[],"viewport":{"width":800,"height":600},"displayHeaderFooter":false,"printBackground":true}}'" failed. Exit Code: 1(General error) Working directory: /var/www/html/votes/public Output: ================ Error Output: ================ module.js:549 throw err; ^ Error: Cannot find module 'puppeteer' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object.<anonymous> (/var/www/html/votes/vendor/spatie/browsershot/bin/browser.js:1:81) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3)
Installing laravel app I need to run
composer install
But not
npm install
Yes ?
But I have to include /public/js/app.js file in /layouts/frontend.blade.php of my template.
I suppose that puppeteer must be in this file?
my composer.json :
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"alaouy/youtube": "^2.2",
"aloha/twilio": "^4.0",
"arrilot/laravel-widgets": "^3.12",
"cviebrock/eloquent-sluggable": "^4.5",
"davejamesmiller/laravel-breadcrumbs": "5.x",
"doctrine/dbal": "^2.8",
"elasticquent/elasticquent": "dev-master",
"facebook/graph-sdk": "^5.7",
"fideloper/proxy": "^4.0",
"google/apiclient": "^2.2",
"intervention/image": "^2.4",
"itsgoingd/clockwork": "^3.0",
"jrean/laravel-user-verification": "^7.0",
"laravel/framework": "5.8.*",
"laravel/socialite": "^3.2",
"laravel/tinker": "^1.0",
"laravelium/sitemap": "^3.1",
"maatwebsite/excel": "^3.1",
"mews/captcha": "^2.2",
"mews/purifier": "^2.1",
"paypal/rest-api-sdk-php": "*",
"proengsoft/laravel-jsvalidation": ">2.2.0",
"s-ichikawa/laravel-sendgrid-driver": "~2.0",
"snowfire/beautymail": "dev-master",
"socialiteproviders/instagram": "^3.0",
"spatie/browsershot": "^3.27",
"spatie/laravel-activitylog": "^3.1",
"spatie/laravel-backup": "^6.1",
"spatie/laravel-feed": "^2.1",
"spatie/laravel-image-optimizer": "^1.4",
"spatie/laravel-newsletter": "^4.2",
"spatie/laravel-sitemap": "^5.3",
"spatie/laravel-tags": "^2.1",
"spipu/html2pdf": "^5.2",
"symfony/psr-http-message-bridge": "^1.2",
"themsaid/laravel-mail-preview": "^2.0",
"unisharp/laravel-filemanager": "^1.9",
"wboyz/laravel-enum": "^0.2.1",
"willvincent/feeds": "1.1.*",
"yajra/laravel-datatables-oracle": "^9.0.0",
"zendframework/zend-diactoros": "^2.1"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.1",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"orangehill/iseed": "^2.6",
"phpunit/phpunit": "^7.0",
"xethron/migrations-generator": "^2.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"#php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"#php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"#php artisan package:discover"
],
"post-update-cmd": [
"php artisan vendor:publish --provider=\"Proengsoft\\JsValidation\\JsValidationServiceProvider\" --tag=public --force"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
package.json:
{
"private": true,
"scripts": {
"dev": "npm run development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "npm run development -- --watch",
"watch-poll": "npm run watch -- --watch-poll",
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
"axios": "^0.19.0",
"bootstrap": "^4.3.1",
"cross-env": "^5.1",
"laravel-mix": "^4.0.16",
"lodash": "^4.17.11",
"popper.js": "^1.14.6",
"vue": "^2.5.7"
},
"dependencies": {
"bootstrap-colorpicker": "^3.1.2",
"datatables.net-bs": "^1.10.19",
"font-awesome": "^4.7.0",
"jquery": "^3.4.1",
"jquery-confirm": "^3.3.2",
"laravel-echo": "^1.5.2",
"mustache": "^2.3.0",
"node-sass": "^4.12.0",
"resolve-url-loader": "^2.3.1",
"sass-loader": "^7.1.0",
"vue-template-compiler": "^2.6.10"
}
}
How to fix this error on server(ubuntu 18 inder Digital Ocean) ?
Related
I did upgrade from 5.6 to 5.7 to 5.8 with no major problems, but I CAN'T upgrade from 5.8 to 6. Let's see some code:
My composer.json file:
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"arcanedev/log-viewer": "~4.7.0",
"davejamesmiller/laravel-breadcrumbs": "5.x",
"devmarketer/easynav": "^1.0",
"dompdf/dompdf": "^0.8.2",
"fideloper/proxy": "^4.0",
"guzzlehttp/guzzle": "^6.3",
"intervention/image": "^2.4",
"itsgoingd/clockwork": "^5.0",
"kylekatarnls/laravel-carbon-2": "^1.0.0",
"laracasts/flash": "^3.0",
"laravel/framework": "^6.0",
"laravel/passport": "^7.0",
"laravel/tinker": "^1.0",
"league/flysystem-aws-s3-v3": "~1.0",
"maatwebsite/excel": "^3.1",
"mpdf/mpdf": "^7.1",
"nesbot/carbon": "2.61.0 as 1.39.0",
"phpoffice/phpspreadsheet": "^1.2",
"pragmarx/google2fa-laravel": "^0.2.0",
"pusher/pusher-php-server": "~3.0",
"robbiep/cloudconvert-laravel": "2.*",
"santigarcor/laratrust": "5.0.*",
"sendgrid/sendgrid": "~7",
"symfony/css-selector": "^4.1",
"symfony/dom-crawler": "^4.1",
"tymon/jwt-auth": "1.0.*",
"unsplash/unsplash": "^2.4",
"yajra/laravel-datatables": "^1.5"
},
"require-dev": {
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0",
"squizlabs/php_codesniffer": "^3.2"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"#php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"#php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"#php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true,
"allow-plugins": {
"kylekatarnls/update-helper": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
And the error is:
Problem 1
- Root composer.json requires laravel/framework ^6.0 -> satisfiable by laravel/framework[v6.0.0, ..., 6.x-dev].
- arcanedev/log-viewer[4.7.0, ..., v4.7.x-dev] require arcanedev/support ~4.5.0 -> satisfiable by arcanedev/support[4.5.0].
- arcanedev/support 4.5.0 requires illuminate/support ~5.8.0 -> satisfiable by illuminate/support[v5.8.0, ..., 5.8.x-dev].
- Conclusion: don't install illuminate/support v5.8.36 (conflict analysis result)
- Root composer.json requires arcanedev/log-viewer ~4.7.0 -> satisfiable by arcanedev/log-viewer[4.7.0, ..., v4.7.x-dev].
I've looked on every forum I found on the internet (almost did!) but couldn't find a solution or any hints on what I could be doing wrong.
What could be wrong? Any hints?
Thanks in advance!
The error is caused by the following:
You want to install laravel/framework:^6.0, which comes with illuminate/support:^6.0.
One of your dependencies, arcanedev/log-viewer:~4.7.0 requires arcanedev/support:~4.5.0
And finally, arcanedev/support:~4.5.0 requires laravel's illuminate/support:^5.8.0.
This creates a conflict.
You have 2 ways to resolve the conflict.
Keep laravel at version 5.8
Update the arcanedev dependencies to a version where they work with laravel 6.
Based on arcanedev/log-support's packagist page, I think 5.2 should do it.
"require": {
"php": "^7.1.3",
"arcanedev/log-viewer": "^5.2.0",
"laravel/framework": "^6.0",
...
This is because arcanedev/log-viewer:^5.2.0 requires arcanedev/support:^5.0 which in turn requires illuminate/support:^6.0, removing the conflict.
I have a project, the caul all the operative part works. But when displaying images, loading resources, the elements are recognized by the browser, they are transferred, but they are not read.
navegator net log
I have reinstalled laravel, composer, npm and nothing works. The result is the same.
composer.json
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^7.3|^8.0",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laracasts/flash": "^3.2",
"laravel/framework": "^8.65",
"laravel/sanctum": "^2.11",
"laravel/tinker": "^2.5",
"laravel/ui": "^3.4",
"laravelcollective/html": "^6.2",
"phpmailer/phpmailer": "^6.5",
"yajra/laravel-datatables-oracle": "~9.0"
},
"require-dev": {
"facade/ignition": "^2.5",
"fakerphp/faker": "^1.9.1",
"laravel/breeze": "^1.5",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^5.10",
"phpunit/phpunit": "^9.5.10"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"#php artisan package:discover --ansi"
],
"post-update-cmd": [
"#php artisan vendor:publish --tag=laravel-assets --ansi --force"
],
"post-root-package-install": [
"#php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"#php artisan key:generate --ansi"
]
},
"extra": {
"laravel": {
"dont-discover":
[
"laravel/dusk"
]
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
package.json
{
"private": true,
"scripts": {
"dev": "npm run development",
"development": "mix",
"watch": "mix watch",
"watch-poll": "mix watch -- --watch-options-poll=1000",
"hot": "mix watch --hot",
"prod": "npm run production",
"production": "mix --production"
},
"devDependencies": {
"#popperjs/core": "^2.10.2",
"#tailwindcss/forms": "^0.2.1",
"alpinejs": "^3.4.2",
"autoprefixer": "^10.1.0",
"axios": "^0.21",
"bootstrap": "^5.1.3",
"lodash": "^4.17.19",
"postcss": "^8.2.1",
"postcss-import": "^12.0.1",
"resolve-url-loader": "^4.0.0",
"sass": "^1.32.11",
"sass-loader": "^11.1.1",
"tailwindcss": "^2.0.2"
},
"dependencies": {
"esrecurse": "^4.3.0",
"internal-ip": "^7.0.0",
"querystring": "^0.2.1"
}
}
The app.js is not loading me either
console log
The problem persisted, I had to lower the laravel version to 7, install nodejs version 16, npm version 8.
Remove directories: node_modules and vendor.
Delete the files: package-lock.json and composer.lock
Then run:
composer install
npm install && npm run dev
I upgraded to Laravel version 8
composer update (resolve all dependencies)
npm install && npm run dev
And there it worked.
Update your laravel-mix
npm install laravel-mix#latest
Clean npm install
npm clean-install
Then run
npm install && npm run dev
When I tried to install laravel breeze, using command composer require laravel/breeze --dev, it gives me this error:
Using version ^1.2 for laravel/breeze
./composer.json has been updated
Running composer update laravel/breeze
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/breeze[v1.2.0, ..., 1.x-dev] require illuminate/filesystem ^8.42 -> found illuminate/filesystem[v8.42.0, v8.42.1, v8.43.0, 8.x-dev] but it conflicts with another require.
- Root composer.json requires laravel/breeze ^1.2 -> satisfiable by laravel/breeze[v1.2.0, v1.2.1, 1.x-dev].
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
My current version of laravel : laravel8.
I'm trying to add an users's authentification session on an existing application.
My composer.json file :
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^7.3|^8.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.12",
"laravel/tinker": "^2.5"
},
"require-dev": {
"facade/ignition": "^2.5",
"fakerphp/faker": "^1.9.1",
"laravel/breeze": "^1.2",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3.3"
},
You need to update your dependencies listed here
Maybe you will not find "laravel/ui" in your composer.json, if it's the case add to it manually as a property from the parent "require".
Then you have to save the file and run on the terminal the command: composer update
Follows below my composer.json file for reference:
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.2.5|^8.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.0",
"laravel/tinker": "^2.5",
"laravel/ui": "^3.0"
},
"require-dev": {
"facade/ignition": "^2.3.6",
"fakerphp/faker": "^1.9.1",
"laravel/breeze": "^1.3",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.0|^9.3.3"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\\": "app/"
},
"classmap": [
"database/seeds",
"database/factories"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"#php artisan package:discover --ansi"
],
"post-root-package-install": [
"#php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"#php artisan key:generate --ansi"
]
}
}
Best solution:
delete composer.lock file
Go to composer.json and add to "require" this: "laravel/breeze": "^1.1",
run composer install --ignore-platform-reqs
It's done
Your composer.lock file will generated again including installation
Trying to install laravel-image-optimizer plugin I got errors:
$ composer require spatie/laravel-image-optimizer
Using version ^1.4 for spatie/laravel-image-optimizer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package spatie/browsershot (locked at 3.30.0, required as ^3.31) is satisfiable by spatie/browsershot[3.30.0] but these conflict with your requirements or minimum-stability.
Installation failed, reverting ./composer.json to its original content.
My composer.json :
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"alaouy/youtube": "^2.2",
"aloha/twilio": "^4.0",
"arrilot/laravel-widgets": "^3.12",
"beyondcode/laravel-websockets": "^1.0",
"cviebrock/eloquent-sluggable": "^4.5",
"davejamesmiller/laravel-breadcrumbs": "5.x",
"doctrine/dbal": "^2.8",
"elasticquent/elasticquent": "dev-master",
"facebook/graph-sdk": "^5.7",
"fideloper/proxy": "^4.0",
"google/apiclient": "^2.2",
"intervention/image": "^2.4",
"itsgoingd/clockwork": "^3.0",
"jrean/laravel-user-verification": "^7.0",
"laravel/framework": "5.8.*",
"laravel/socialite": "^3.2",
"laravel/tinker": "^1.0",
"laravelium/sitemap": "^3.1",
"maatwebsite/excel": "^3.1",
"mews/captcha": "^2.2",
"mews/purifier": "^2.1",
"proengsoft/laravel-jsvalidation": ">2.2.0",
"pusher/pusher-php-server": "~3.0",
"s-ichikawa/laravel-sendgrid-driver": "~2.0",
"snowfire/beautymail": "dev-master",
"socialiteproviders/instagram": "^3.0",
"spatie/browsershot": "^3.31",
"spatie/laravel-activitylog": "^3.1",
"spatie/laravel-backup": "^6.1",
"spatie/laravel-feed": "^2.1",
"spatie/laravel-newsletter": "^4.2",
"spatie/laravel-tags": "^2.1",
"spipu/html2pdf": "^5.2",
"themsaid/laravel-mail-preview": "^2.0",
"unisharp/laravel-filemanager": "^1.9",
"wboyz/laravel-enum": "^0.2.1",
"willvincent/feeds": "1.1.*",
"yajra/laravel-datatables-oracle": "^9.0.0"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.1",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"orangehill/iseed": "^2.6",
"phpunit/phpunit": "^7.0",
"xethron/migrations-generator": "^2.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"#php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"#php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"#php artisan package:discover"
],
"post-update-cmd": [
"php artisan vendor:publish --provider=\"Proengsoft\\JsValidation\\JsValidationServiceProvider\" --tag=public --force"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
As I see here https://github.com/spatie/browsershot/releases
latest version of it is 3.31.0
and it my composer.json I have
"spatie/browsershot": "^3.31",
is a latest version, just as on spatie/browsershot/releases page.
Which steps have I to take ?
Thanks!
The package spatie/laravel-image-optimizer required the spatie/browsershot and you should`t require this separately. You can do:
composer remove spatie/browsershot;
composer require spatie/laravel-image-optimizer;
and this two modules will installed to your project
My composer.json:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"alsofronie/eloquent-uuid": "^1.0",
"arcanedev/log-viewer": "^4.3",
"barryvdh/laravel-cors": "^0.8.5",
"bugsnag/bugsnag-laravel": "^2.4",
"cviebrock/eloquent-sluggable": "^4.1",
"doctrine/dbal": "^2.5",
"graham-campbell/binput": "^3.6",
"guzzlehttp/guzzle": "^6.2",
"intervention/image": "^2.3",
"laravel/framework": "5.4.*",
"laravel/socialite": "^3.0",
"laravel/tinker": "~1.0",
"laravelcollective/html": "^5.4",
"laravelista/ekko": "^1.3",
"pda/pheanstalk": "^3.1",
"propaganistas/laravel-phone": "^2.8",
"spatie/laravel-collection-macros": "^2.0",
"spatie/laravel-fractal": "^3.3",
"stefensuhat/flash": "^2.5",
"stefensuhat/no-captcha": "^1.0",
"yajra/laravel-datatables-oracle": "^7.3"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.0"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-root-package-install": [
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan optimize"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true
}
}
Output of composer diagnose:
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0 87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B 0C708369 153E328C AD90147D AFE50952
OK
When I run this command:
composer update
I get the following output:
And I expected to update my package normally.
ALready tried this solution Composer Content-Length Mismatch but no luck.