bolt / project

🚀 Repo to `composer create project` a Bolt 5 project.
MIT License
39 stars 38 forks source link

Can't install Bolt #76

Closed Elegye closed 3 years ago

Elegye commented 3 years ago

Hi everyone !

I am pretty interested in Bolt for many of my and clients projects. I wanted to install it in Local in order to learn how it works.

However, I just can't install it. Following is what I enter in my terminal to create my project and what it returns.

I use PHP Version 8.0.6, Composer 2.0.14.

I do not want to downgrade my PHP Version until I am sure it will not work.

λ composer create-project bolt/project amicale
Creating a "bolt/project" project at "./amicale"
Installing bolt/project (1.3.33)
  - Installing bolt/project (1.3.33): Extracting archive
Created project in C:\wamp64\www\amicale
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - doctrine/orm is locked to version 2.7.5 and an update of this package was not requested.
    - doctrine/orm 2.7.5 requires php ^7.1 -> your php version (8.0.6) does not satisfy that requirement.
  Problem 2
    - phpdocumentor/reflection-docblock is locked to version 4.3.4 and an update of this package was not requested.
    - phpdocumentor/reflection-docblock 4.3.4 requires php ^7.0 -> your php version (8.0.6) does not satisfy that requirement.
  Problem 3
    - tightenco/collect is locked to version v7.26.1 and an update of this package was not requested.
    - tightenco/collect v7.26.1 requires php ^7.1.3 -> your php version (8.0.6) does not satisfy that requirement.
  Problem 4
    - doctrine/orm 2.7.5 requires php ^7.1 -> your php version (8.0.6) does not satisfy that requirement.
    - knplabs/doctrine-behaviors 2.1.0 requires doctrine/orm ^2.7 -> satisfiable by doctrine/orm[2.7.5].
    - knplabs/doctrine-behaviors is locked to version 2.1.0 and an update of this package was not requested.

To fix this, I have specified php version in composer.json. In this case, some child libraries already in PHP8 crash the installation.

I have no idea how to workaround this behaviour ...

bobdenotter commented 3 years ago

Please don't open duplicate issues. :-)

See #70

Elegye commented 3 years ago

Thanks ! I think it would be great to write it either in documentation or in README ...

bobdenotter commented 3 years ago

We're working on updating the docs etc. for Bolt 5. It's coming!

The easiest way to install the beta of Bolt 5 currently is:

composer create-project bolt/project myprojectname "^2.0" --stability=beta