Composer installs older version of Sage (8.5.4)

Hello friends,

I’m finally transitioning to sage9, but I’m having some trouble getting it to work. When I run composer create-project roots/sage your-theme-name, it continues to install the older version of Sage (8.5.4).

I’m on Windows 10, using WAMP 3.1.3, with the PHP version set to 7.2.4. However, when I run php -v on the command line, its saying I’m usiong PHP 5.7.19. I’ve also added a PATH variable that points to C:\wamp\bin\php\php7.2.4.

I’m not really sure where to go at this point, so any help would be appreciated.


Clear the Composer cache first with:

composer clear-cache

You can also add the version:

composer create-project roots/sage your-theme-name 9.0.1

Use dev-master for the latest changes to the repo:

composer create-project roots/sage your-theme-name dev-master

Ended up deleting the PATH variable, adding it again, signing out and now it works. Thanks :smiley: