๋ด composer.json
:
{
"require": {
"fxp/composer-asset-plugin": "~1.1.1"
}
}
๋ด๊ฐ ๋ฌ๋ฆด ๋
php -r "readfile('https://packagist.phpcomposer.com/packages.json');" > composer-setup.php
PHP Warning: readfile(https://packagist.phpcomposer.com/packages.json): failed to open stream: Operation now in progress in Command line code on line 1
๊ทธ๋ฆฌ๊ณ ๋๋ anthor ์ฝ๋๋ฅผ ์คํํ๋ค
LiuZeXin:GA xin$ composer global require "fxp/composer-asset-plugin:~1.1.1"
Changed current directory to /Users/xin/.composer
./composer.json has been updated
Loading composer repositories with package information
Installation failed, reverting ./composer.json to its original content.
[Composer\Downloader\TransportException]
**The "https://packagist.phpcomposer.com/packages.json" file could not be downloaded: failed to open stream: Operation now in progress**
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...
php.ini์ ์ผ๋ถ ๊ตฌ์ฑ ๋งค๊ฐ๋ณ์ ์ค๋ฅ์ ๊ดํ ๊ฒ ๊ฐ์ต๋๋ค.
๋์์ด ํ์ํด
php.ini์์ ๋งค๊ฐ๋ณ์๋ฅผ ๋ณ๊ฒฝํฉ๋๋ค.
default_socket_timeout = 60
๊ทธ๊ฒ์ ๋๋ฅผ ์ํด ์ผ์
๋๋ค.
๋๊ฐ ์ด ๋ฌธ์ ์ ์์ธ์ ๋งํด ์ค ์ ์์ต๋๊น?
@liuzexin thaaaanks! ๋๋ ๊ทธ๊ฒ์ด ํจ๊ณผ๊ฐ ์์๋ค๋ ๊ฒ์ ๋ฏฟ์ ์ ์๋ค.
php.ini์์ ๋งค๊ฐ๋ณ์๋ฅผ ๋ณ๊ฒฝํฉ๋๋ค.
default_socket_timeout = 60
๊ทธ๊ฒ์ ๋๋ฅผ ์ํด ์ผ์ ๋๋ค.๋๊ฐ ์ด ๋ฌธ์ ์ ์์ธ์ ๋งํด ์ค ์ ์์ต๋๊น?
๊ทธ๊ฒ์ ์ ์๊ฒ๋ ํจ๊ณผ์ ์ด์์ต๋๋ค. ๋ด ๋๋ต์ ์ ๊ฒฝ์ฐ์ง ๋ง์ธ์. ํน์๋ผ๋ ๋ค์ ๋ง๋๊ฒ ๋ ๊ฒฝ์ฐ๋ฅผ ๋๋นํ์ฌ ์ด ์ค๋ ๋์ ์ ๋ฐ์๊ตญ์ ๋จ๊ธฐ๋ ค๊ณ ํฉ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
php.ini์์ ๋งค๊ฐ๋ณ์๋ฅผ ๋ณ๊ฒฝํฉ๋๋ค.
default_socket_timeout = 60
๊ทธ๊ฒ์ ๋๋ฅผ ์ํด ์ผ์ ๋๋ค.
๋๊ฐ ์ด ๋ฌธ์ ์ ์์ธ์ ๋งํด ์ค ์ ์์ต๋๊น?