When I try to install Flarum, I get this error
$ composer create-project flarum/flarum . --stability=beta
Creating a "flarum/flarum" project at "./"
Installing flarum/flarum (v0.1.0-beta.14)
Failed to download flarum/flarum from dist: /var/www/test.domain/vendor/composer does not exist and could not be created.
Now trying to download from source
- Syncing flarum/flarum (v0.1.0-beta.14) into cache
- Installing flarum/flarum (v0.1.0-beta.14): Cloning 5abd213039 from cache
Install of flarum/flarum failed
[RuntimeException]
Could not delete /var/www/test.domain/.:
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package>] [<directory>] [<version>]