yii2: Composer always hangs when I install yii2
Hello, thank you for Yii. I have vagrant which is my dev server. So I’m trying to make fresh Yii2 installation. I’ve installed composer globally and try the following command in project folder:
composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced advanced
Every time I get the following:
Installing yiisoft/yii2-app-advanced (dev-master d1b592e5f496cb4adbe08d38bbd35af4469157f1)
- Installing yiisoft/yii2-app-advanced (dev-master master)
Downloading: 100%
Created project in advanced
Loading composer repositories with package information
Installing dependencies (including require-dev)
(at this moment composer hangs about 3-5 minute), next line:
The "http://packagist.org/p/yiisoft/yii2-jui$bca96c74d24b5b7ee484a3b25affddac9c01236a9a414823e13aa201573d95e7.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Name or service not known
failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
http://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Next, after all dependencies have been downloaded I try to init project (in accordance with https://github.com/yiisoft/yii2-app-advanced), but unfortunately I get the following:
init: missing runlevel
Try `init --help' for more information.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 32 (21 by maintainers)
yes, try
php inittry
php init