۱ گیسو
ارور در حین نصب پکیج
جامعه پایتون (وب) ایجاد شده در ۱۸ خرداد ۱۴۰۴

سلام وقت بخیر ببخشید وقتی دستور composer require respect/validationرا در محیط bashوارد میکنم با ارور زیر روبه رو میشم

Installation failed, deleting ./composer.json.

In RequireCommand.php line 225:

 No composer.json present in the current directory (./composer.json), this m
 ay be the cause of the following exception.


In CurlDownloader.php line 372:

 curl error 28 while downloading https://repo.packagist.org/packages.json: S
 SL connection timeout


require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]

 

سلام،

با دستور زیر ابتدا فایل composer.json رو بسازید بعد پکیج‌های جدید رو نصب کنید:

composer init --no-interaction
محسن موحد ۱۹ خرداد ۱۴۰۴، ۰۸:۴۲