FriendsOfPHP / Goutte

Goutte, a simple PHP Web Scraper
MIT License
9.26k stars 1.01k forks source link

Composer Requirements #354

Open juandahveed opened 6 years ago

juandahveed commented 6 years ago

After downloading this package, the first set of instructions says to add fabpot/goutte as a require dependency in your composer.json.

I'm not able to do that, I continually get the error in my console.

Problem 1

What am I doing wrong. It prevents me from going further, and I'd really like to use this code.

JakeHenshall commented 6 years ago

Hi.

Have you installed Composer Globally?

try composer clear-cache

Also maybe try removing the vendor folder and composer.lock, then running the command again.

Let me know if that helps.

Thanks, Jake.

mjhd commented 4 years ago

I'm having this same issue, I'm not particularly familiar with Composer so I really don't know where to go from here - attempted clear cache, Composer is installed globally and working normally on other projects, composer require doesn't progress far enough to create vendor folder or lock file...

Edit: Was able to workaround by adding

        "version": "4.0",

after the description in composer.json

Hope that helps someone!