Tag: composer
-
Post Views: 11 1. When executing: composer update, prompt: no valid bower.json was found in any branch or tag ofhttps://github.com/blueimp/JavaScript-Canvas-to-Blob.git,cou LD not load a package from it. As shown in Figure 1 2. Execute:composer global require “fxp/composer-asset-plugin”, update the Composer Asset plugin to the latest version, as shown in Figure 2 3. It is suspected that the network problem caused…
-
Post Views: 16 1,composer install When prompted: package yiisoft/yii2-codeception is bandoned, you should avoid using it. Use codeception/codeception Instead., as shown in Figure 1 2. Execute the command:composer show -s, only list the current project information, as shown in Figure 2 3. Check the requirements (dev) option and find that codeception/codeception already exists, so you only need to delete yiisoft/yii2-codeception,…
-
Post Views: 14 1. Open the URL:http://www.yii2-app-advanced.dev/, the error directory: E:\wwwroot\yii2-app-advanced/vendor\bower/jquery/dist does not exist, as shown in Figure 1 2. Open e:\wwwroot\yii2-app-advanced\vendor , and confirm that the directory bower does not exist, as shown in Figure 2 3. Check the composer installation prompt and find that the bower has been replaced with the bower-asset directory, which is normal, as shown…
-
Post Views: 52 1. In Windows Powershll, enter the wwwroot directory, as shown in Figure 1 2. Through the Composer installation, run the following commands and install it in the kaiqiu_shujujixi_api directory, as shown in Figure 2 and 3 composer create-project yiisoft/yii2-app-advanced kaiqiu_shujujixi_api 2.0.10 3. Enter kaiqiu_shujujixi_api directory, right-click, select git bash here, as shown in Figure 4 4. Execute…
-
Post Views: 11 1. Open the backend – content – text component – create text block, error: classtrntv\Aceeditor\Aceeditornot found, as shown in Figure 1 2. Edit yii2-starter-kit\vendor\trntv\yii2-file-kit\composer.json, as shown in Figure 2 “autoload”: { “psr-4”: { “trntv\\filekit\”: “” } }, Modified to: “autoload”: { “psr-4”: { “trntv\\filekit\”: “src/” } }, Note: Redefine the mapping from namespace to directory, the directory…
-
Post Views: 14 1. Install yii2-starter-kit under Windows 10 and Nginx 1.10, and run on the command line: php console/yii app/setup, as shown in Figure 1 2. Error: create unique index IDx_article_slug on {{%article}} (slug) …exception: sqlstate[42000]: Syntax error or access Violation: 1071 specific key was too long; max key length is 767 bytes, as shown in Figure 2 Translation:…
-
Post Views: 13 1. Composer has been installed, update composer to the latest version, execute the command, the result is as shown in Figure 1: composer self-update Error: warning: modulembstringAlready loaded in unknown on line 0 2. In php.ini, it is found that extension=php_mbstring.dll is loaded twice, and the 1007 line is commented out, as shown in Figure 2 and…
-
Post Views: 13 1. Open the URL:http://redis.io/download, windows The Redis project does not officially support Windows. However, Microsoft Open Technology Group has developed and maintained a Redis version for Windows 64-bit. as shown in Figure 1 2. The URL is linked to:https://github.com/MSOpenTech/redis According to the prompt, you canhttp://github.com/MSOpenTech/redis/releasesDownload to the latest binary file, as shown in Figure 2 3. Download…
-
Post Views: 5 1. Open the URL,http://www.yiiframework.com/download/,根据提示执行升级: 2. Execute the command: php composer.phar require yiisoft/yii2 2.0.6, report an error: [UnexpectedValueException] Could not parse version Constraint <=2.*: Invalid version string “2.*” 3. Execute commands one after another: composer self-update, composer global update; 4. Execute the command again: composer global update; 5. Execute the command again: php composer.phar require yiisoft/yii2 2.0.6, the…
-
Post Views: 13 1. Composer self-update appears[ErrorException] zlib_decode(): data error prompt 2. Edit zlib.output_compression in php.ini = on, zlib.output_compression_level = 5 3. Check the relevant information of zlib in phpinfo as follows: 4. Composer self-update execution is successful