解决./composer.json" does not match the expected JSON schema

唯一在线客服系统-开发技术笔记 / 2023-07-21 / 原文

如果执行composer install的时候报错

 "./composer.json" does not match the expected JSON schema:
   - name : Does not match the regex pattern ^[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z
  0-9](([_.]|-{1,2})?[a-z0-9]+)*$

 

这是因为name里的格式不符合要求,需要 有/   ,并且不能有大写,仔细检查下正则那句话

无语!