我尝试从此处安装软件包:
https://iwader.co.uk/post/tymon-jwt-auth-with-lumen-5-2
因此,我尝试运行此命令:
composer require tymon/jwt-auth:"^1.0@dev"
但是我得到了这个错误:
The requested package tymon/jwt-auth: could not be found, it looks like its name is invalid,
":" is not allowed in package names.
您可能有经验来处理吗?
答案 0 :(得分:1)
使用require
命令时,请尝试使用全名+版本字符串:
composer require "tymon/jwt-auth:^1.0@dev"