HelloWorld-PHP
HelloWorld-PHP copied to clipboard
composer.json file is not compatible with latest composer version (2.0.7)?
I am getting this error when running composer install
with a clone of this repo:
[Composer\Json\JsonValidationException]
./composer.json does not match the expected JSON schema:
- name : Does not match the regex pattern ^[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9](([_.]?|-{0,2})[a-z0-9]+)*$
It seems composer needs a '/' in the name field. I tried replacing the '-' with a '/', as below and it seems to get past this issue:
{
"name": "intuit/demos-webhooks"
....
but I don't know if that is the correct fix or not...just a test and it seemed to work.
How did you figure this out? Actually you just saved me.
Thanks Otto