After $ composer installeverything went well, but was composer.jsonabsent (deleted?).
This means that composer.jsonit will no longer exist after composer install.
It is very strange.
Here is mine composer.json:
{
"repositories": [
{
"type": "composer",
"url": "http://wpackagist.org"
},
{
"type": "package",
"package": {
"name": "wordpress",
"type": "webroot",
"version": "4.4.1",
"dist": {
"type": "zip",
"url": "https://github.com/WordPress/WordPress/archive/4.4.1.zip"
},
"require": {
"fancyguy/webroot-installer": "1.0.0"
}
}
}
],
"require": {
"php": ">=5.3.0",
"wordpress": "4.4.1",
"fancyguy/webroot-installer": "1.0.0"
},
"extra": {
"webroot-dir": "./",
"webroot-package": "wordpress"
}
}
Catalog vendorand composer.lockstill exist.
myMBP:testtt erwai$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)
- Installing fancyguy/webroot-installer (1.0.0)
Loading from cache
- Installing wordpress (4.4.1)
Loading from cache
Writing lock file
Generating autoload files
myMBP:testtt erwai$ ls
composer.lock wp-blog-header.php wp-load.php
index.php wp-comments-post.php wp-login.php
license.txt wp-config-sample.php wp-mail.php
readme.html wp-content wp-settings.php
vendor wp-cron.php wp-signup.php
wp-activate.php wp-includes wp-trackback.php
wp-admin wp-links-opml.php xmlrpc.php
myMBP:testtt erwai$ ls composer.json
ls: composer.json: No such file or directory
myMBP:testtt erwai$ ls composer.lock
composer.lock
myMBP:testtt erwai$ ls vendor
autoload.php composer
- OS: OS X 10.11.2
- PHP: 5.5.30
- Composer: 1.0-dev (64b0d721838cdceef679761c5cf69a0d070d14c9)
EDIT
I think this can happen when installing Wordpress.
Since wordpress is installed in the root directory ( "webroot-dir": "./"), it seems to clear the entire directory.
Is there any idea?
source
share