Category: Composer 2
-
Post Views: 20 1. Execute the Composer Update in Homestead and report an error: Your requirements could not be resolved to an installable set of packages. The reason is that the PHP version is 8.0 , and the version of the package depends on 7. as shown in Figure 1 2. Reference:https://learnku.com/docs/laravel/5.8/homestead/3882#multiple-php-versions. Homestead 6 introduced support for multiple PHP versions…
-
Post Views: 17 1. When executing php artisan config:clear, an error is reported: ErrorException : include(e:\wwwroot\object\vendor\composer/../../modules/them eStoreGraphQL/Providers/GraphQLResolverServiceProvider.php): Failed to open stream: no such file or directory. as shown in Figure 1 2. Confirm the file modules/themestoreGraphQL/providers/GraphQLResolverServiceProvider.php It no longer exists and is renamed: modules/OnlineStoreEthemeGraphQL/Providers/GraphQLResolverServiceProvider.php 3. Execute the composer install command to regenerate vendor\composer\classloader.php. Error: in providerRepository.php line 208: classModules\ThemeStoreGraphQL\Providers\GraphQLResolverServiceProviderNot found…
-
Post Views: 18 1. There is a folder at this stage, which contains a configuration file similar to .gitignore: .themeignore, the content is as follows 2. You need to ignore some files based on this file configuration, and only include the required files. For example: filter out node_modules/* . as shown in Figure 1 3. Install togos/gitignore based on composer…
-
Post Views: 15 1. When executing: composer install, it prompts: key condevelopment/blade-filters is a duplicate in ./composer.json at line 91. as shown in Figure 1 2. Reference:https://www.shuijingwanwq.com/2022/04/19/6307/. At that time, there was no need to edit composer.json, and add “conedevelopment/blade-filters”: “^0.8”. Delete this line to avoid duplication. 3. Refer to Warning, execute Composer Update ConedEvelopment/blade-filters. as shown in Figure 2…
-
Post Views: 19 1. When executing composer install, an error is reported: classPine\BladeFilters\BladeFiltersnot found. as shown in Figure 1 2. Edit composer.json, add “conedevelopment/blade-filters”: “^0.8” 3. When executing again, the prompt: key ConeDevelopment/blade-filters is a duplicate in ./composer.json at line 91. warning: the lock file is not up to date with the latest changes in composer.json. as shown in Figure…
-
Post Views: 16 1. Check the Scripts section in Composer.json. as shown in Figure 1 2. When executing the command: composer install, only the commands under the pre-autoload-dump and post-autoload-dump parts are executed. as shown in Figure 2 3. The first command to execute google\task\composer::cleanup belongs to the command event: pre-autoload-dump. This event fires before the autoloader is dumped, either…
-
Post Views: 14 1. When executing php artisan package:discover –ansi, the error: please install the elasticsearch php client: Elasticsearch/Elasticsearch. as shown in Figure 1 2. The reason is that the package tamayo/laravel-scout-elastic needs to install Elasticsearch/elasticsearch. However, before executing the command composer require nuwave/lighthouse, the command is also executed: php artisan package:discover –ansi, no error is reported. as shown in…
-
Post Views: 18 1. When writing the automated test cases of Lighthouse 5, phpstorm cannot be completed automatically. When you click $response->assetJSON, you cannot find the statement you want to go to. fashionAssertJSONNot found in \illuminate\testing\testResponse. as shown in Figure 1 2. Print the $response object, its actual path is:\illuminate\foundation\testing\testResponse. as shown in Figure 2 3. In another project, phpstorm…
-
Post Views: 17 1. When executing composer require, an error is reported:[Composer\Downloader\TransportException]Curl Error 6 while downloadinghttps://api/v4/projects/%2Fnova:Could not resolve host: API . as shown in Figure 1 2. Check the composer.json file, which contains nova-related configuration items. 3. Create a new file: C:\Users\Lenovo\AppData\Roaming\Composer\Auth.json. Specific values need to be set by yourself. as shown in Figure 2 4. When the Composer require…
-
Post Views: 21 1. In Laravel 6, execute the command: php artisan telescope:publish, report an error: Unable to local publishable resources. Publishing complete. as shown in Figure 1 2. Check composer.json, laravel/teleScope exists in require-dev. 3. Check the directory /config, the file telescope.php already exists, the file: /app/providers/teleScopeServiceProvider.php already exists. But the directory /public/vendor/teleScope does not exist. 4. Access:http://object.local/telescope, the…