thinkphp6.0 composer common installation error cause web-token / jwt-framework analysis and solutions



composer require web-token/jwt-framework

JWT installation error message appears

- web-token/jwt-framework v2.0.1 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
- web-token/jwt-framework v2.0.0 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
- Installation request for web-token/jwt-framework ^2.0 -> satisfiable by web-token/jwt-framework[v2.0.0, v2.0.1, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9].

  

To enable extensions, verify that they are enabled in your .ini files: - D:\phpstudy_pro\Extensions\php\php7.3.4nts\php.ini You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. Installation failed, reverting ./composer.json to its original content.

The reason is the need to enable

extension gmp

Note the error message

Fix!

Open php.ini

Enable gmp expand

Php.ini file is removed; extension = gmp of the foregoing;

After the save changes, restart the service on the line

 

Special Note! ! !

web-token / jwt-framework needs to open  sodium  expand

 

Guess you like

Origin www.cnblogs.com/ckoo/p/11390381.html