I am setting up a small dev environment.
- Ubuntu 20.04
- PHP 7.4.3
- Composer 2.2.6
I have Composer installed.
Composer version 2.2.6 2022-02-04 17:00:38
I am attempting to require php-jwt. I run composer require firebase/php-jwt
. When I do this, I get the following error:
[Seld\JsonLint\ParsingException]
"./composer.json" does not contain valid JSON
Parse error on line 1:
^
Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['
When I cat composer.json
in my working directory, there is nothing in it. Are there default options that should be in composer.json?