@maksimwork1980

.../php/vendor does not exist and could not be created — как решить?

У меня была папка vendor, но я стёр её. Теперь при попытке установка composer:
spoiler
$ 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>...]

при попытке удаления
spoiler
$ 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>...

при попытке переустановки
spoiler
$ 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.

И при написании глобальной команды он пишет
spoiler
$ 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

но сейчас я удалил composer ещё по другому всё ровно он остался в системе:
spoiler
$ sudo rm /usr/bin/composer
$ sudo apt purge composer

$ composer
-bash: /usr/bin/composer: No such file or directory

$  php composer.phar install
// Та же самая ошибка

Как почистить следы?
  • Вопрос задан
  • 424 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы