<p>Not knowing what version of Craft or Imager-X you're working with my first recommendation would be to do a composer update before adding Imager-X.</p>
<p>Next, I'd try deleting the 'vendor' directory and composer.lock file and running <code>composer install</code></p>

CC BY-SA 4.0
2023-06-14T12:30:47.103Z
I think I did something like this and have solved the problem. Thanks
JYdigital
CC BY-SA 4.0
2023-06-13T11:05:13.067Z
2023-06-13T11:05:13.067Z
cherrykoda
<pre><code>Error: &quot;https://composer.craftcms.com/p2/aws/aws-sdk-php.json&quot; does not contain valid JSON
Parse error on line 1:
...pball\/6690347bc833&quot;https:\/\/api.github
----------------------^
Expected one of: 'EOF', '}', ':', ',', ']'
</code></pre>

CC BY-SA 4.0
2023-06-07T00:03:08.097Z
If you load https://composer.craftcms.com/p2/aws/aws-sdk-php.json in a browser on the same server you're getting that message on, does it load for you? It loads fine and looks like valid JSON for me.
Brad Bell
CC BY-SA 4.0
2023-06-14T12:31:06.790Z
Thanks Brad yes it loads. I seem to have solved the problem though.
JYdigital
<error-message><composer>
Composer error when adding imager-x plugin
# Composer error when adding imager-x plugin

(Asked by: username_0 on 2023-06-06)

Error: "https://composer.craftcms.com/p2/aws/aws-sdk-php.json" does not contain valid JSON
Parse error on line 1:
...pball\/6690347bc833"https:\/\/api.github
----------------------^
Expected one of: 'EOF', '}', ':', ',', ']'

**Tags:** error-message, composer
> **Comments:**
> **username_1**: If you load https://composer.craftcms.com/p2/aws/aws-sdk-php.json in a browser on the same server you're getting that message on, does it load for you? It loads fine and looks like valid JSON for me.  
> **username_0**: Thanks Brad yes it loads. I seem to have solved the problem though.  

---

## 1 answers

### Answer by username_2 on 2023-06-13. Score: 1 | Accepted answer

Not knowing what version of Craft or Imager-X you're working with my first recommendation would be to do a composer update before adding Imager-X.

Next, I'd try deleting the 'vendor' directory and composer.lock file and running `composer install`

> **Comments:**
> **username_0**: I think I did something like this and have solved the problem. Thanks  

---

