Category: Composer 2
-
Post Views: 59 1. When executing the command composer update –ignore-platform-reqs, an error is reported: script @php artisan package:discover –ansi handling the Post-autoload-dump event returned with error code 255. as shown in Figure 1 2. Why the option –ignore-platform-reqs is added when executing the composer update command. The reason is that when executing composer update, an error is reported: it…
-
Post Views: 21 1. Reference URL:https://www.shuijingwanwq.com/2021/12/29/5622/, Laravel 8.x is deployed to Heroku, based on PostgreSQL implementation. Therefore, some steps can be omitted. 2. In the local development environment, the Laravel native environment has been deployed. Open URL:http://larabbs.local/, the response 200. as shown in Figure 1 3. Verify your installation, to verify your CLI installation, use the heroku –version command. Current…
-
Post Views: 19 1. When installing Laravel/Horizon based on Composer, an error is reported: Package Laravel/Horizon at version ~5.6 has requirements incompatible with Your php version, php extensions and composer version. as shown in Figure 1 2. Based on the prompt information, install the PHP extension: PCNTL, POSIX, but PCNTL is not available under Windows. as shown in Figure 2…
-
Post Views: 16 1. chmod(): operation not permitted, /vendor/laravel/framework/src/illuminate/filesystem/filesystem.php . as shown in Figure 1 2. The reason may be that the git branch is switched, and the code is not merged. But the /vender directory is shared. Re-execute the command: after composer install, no more errors are reported. as shown in Figure 2
-
Post Views: 15 1. When executing the command: composer install, an error is reported: script google\task\composer::cleanup handling the pre-autoload-dump event terminated with an exception. as shown in Figure 1 2. Check /vendor/google/apiclient/readme.md, clean up unused services, there are more than 200 Google API services. Chances are you won’t want them all. To avoid transferring these dependencies in your code, you…
-
Post Views: 17 1. When executing the command: docker-compose -f docker-compose.yml up –build –force-recreate, an error: error[startup_object-fpm internal]Load metadata for docker.io/library/php:7.4-fpm-alpine . 2. After pulling the latest code, execute the command again, and report an error: Error Response from Daemon: Error while creating mount source path. as shown in Figure 1 3. Decide in Docker, delete the volumes of the…
-
Post Views: 15 1. Execute the command: Sail Artisan migrate, report an error: chmod(): operation not permitted. as shown in Figure 1 2. Run the following command to reload the file: Sail composer dump-autoload, report an error: in filesystem.php line 207: chmod(): operation not permitted. script @php artisan package:discover –ansi handling the post-autoload-dump event returned with error code 1. as…
-
Post Views: 15 1. Laravel 8.x is deployed to Heroku, and when the database data filling is executed, an error is reported: class “faker\factory” not found. as shown in Figure 1 2. Edit composer.json , copy “fakerphp/faker” in “require-dev” to “require”. as shown in Figure 2 3. If there is a program that may affect the running of the local…
-
Post Views: 16 1. Use Composer to create an application called weibo. Open the Windows Terminal command line and follow the instructions below to enter the Ubuntu system. as shown in Figure 1 2. Ubuntu, as a Windows subsystem, can access the hard disk under the main system. In order to facilitate the management code, I have already created the…
-
Post Views: 49 1. Composer detected issues in your platform: your composer dependencies require a php version “>= 7.3.0”.. Composer detects a problem in your platform: your composer dependency requires the PHP version of “>= 7.3.0”. as shown in Figure 1 2. The root cause is that the program needs to be deployed on the cloud server of Huawei Cloud’s…