加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

thinkphp6.0 composer 安装 web-token/jwt-framework 常见出错原

发布时间:2020-12-13 21:32:01 所属栏目:PHP教程 来源:网络整理
导读:composer require web-token/jwt-framework 安装JWT出现错误提示 - 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 reque


composer require web-token/jwt-framework

安装JWT出现错误提示

- 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_proExtensionsphpphp7.3.4ntsphp.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.

的原因是需要? 启用

extension gmp

注意报错中的提示信息

修复方法!

打开php.ini

启用?gmp?拓展

也就是去掉?php.ini?文件中 ;extension=gmp?前面的 ;

修改后保存,重启服务就行

?

特别提示!!!

web-token/jwt-framework 需要开启?sodium?拓展

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读