composer-php报错--window

问题1:Could not open input file: composer.phar

If you, like me try to use the following command in using composer

 php composer.phar update xxx/xxxx

and get this error

 Could not open input file: composer.phar

You are probably using Windows command prompt to do the update.

 

Try this instead.

composer update xxx/xxx

问题2:composer install 报错: ----window环境

network问题,以及打不开链接地址Php_network_getaddresses: getaddrinfo failed: No such host is known

需要用管理员打开cmd控制台,再执行命令



你可能感兴趣的:(composer-php报错--window)