Answer the question
In order to leave comments, you need to log in
.../php/vendor does not exist and could not be created - how to solve?
I had a vendor folder, but I deleted it. Now when trying to install composer:
$ php composer.phar install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 29 installs, 0 updates, 0 removals
In Filesystem.php line 268:
/var/www/sites/product_catalog/php/vendor does not exist and could not be created.
install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...]
$ php composer.phar remove *
chromedriver is not required in your composer.json and has not been removed
composer.json is not required in your composer.json and has not been removed
composer.lock is not required in your composer.json and has not been removed
composer.phar is not required in your composer.json and has not been removed
simplehtmldom is not required in your composer.json and has not been removed
./composer.json has been updated
Running composer update chromedriver composer.json composer.lock composer.phar simplehtmldom
Loading composer repositories with package information
Package "chromedriver" listed for update is not locked.
Package "composer.json" listed for update is not locked.
Package "composer.lock" listed for update is not locked.
Package "composer.phar" listed for update is not locked.
Package "simplehtmldom" listed for update is not locked.
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Package operations: 29 installs, 0 updates, 0 removals
In Filesystem.php line 268:
/var/www/sites/product_catalog/php/vendor does not exist and could not be created.
remove [--dev] [--dry-run] [--no-progress] [--no-update] [--no-install] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-all-dependencies] [--no-update-with-dependencies] [--unused] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] <packages>...
$ php composer.phar reinstall *
Pattern "chromedriver" does not match any currently installed packages.
Pattern "composer.json" does not match any currently installed packages.
Pattern "composer.lock" does not match any currently installed packages.
Pattern "composer.phar" does not match any currently installed packages.
Pattern "simplehtmldom" does not match any currently installed packages.
Found no packages to reinstall, aborting.
$ composer
PHP Warning: require(Composer/autoload.php): failed to open stream: No such file or directory in /usr/bin/composer on line 9
PHP Fatal error: require(): Failed opening required 'Composer/autoload.php' (include_path='/var/www/sites/') in /usr/bin/composer on line 9
$ sudo rm /usr/bin/composer
$ sudo apt purge composer
$ composer
-bash: /usr/bin/composer: No such file or directory
$ php composer.phar install
// Та же самая ошибка
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question