作曲家更新失败,"...target machine actively refuses connection..."



我正在尝试做一个简单的作曲家动作(安装laravel(,并在门口被拦住。

完整的错误消息是

C:.....Composer>composer install
Loading composer repositories with package information
  [ComposerDownloaderTransportException]
  The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: No connection could be made because the target machine actively refused it.
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress
] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
C:.....Composer>

Win7/PHP5.5.8

我使用的是Chrome和IE,两者都使用相同的自动配置脚本(指向" wpad.dat"文件(。

我尝试了以下方法:

  • 诊断中的 PHP 变量 (php -i(

    变量 => 值...

    _SERVER["https_proxy"] => http://172.26.3.10:8080

    _SERVER["http_proxy"] => http://172.26.3.10:8080

我错过了什么?我一直在关注各种线程,但我似乎缺少一些非常基本的东西。

  • 对代理服务器执行 ping 操作会从与上述相同的 IP 地址生成响应。

  • https://getcomposer.org/installer 放入浏览器中,我会下载一个名为installer的文件(在Chrome上(。

  • 作曲家未安装 Windows 7

  • 如何启用PHP的openssl扩展来安装Composer?

  • 详细诊断

'C:\xampp\htdocs>composer -v global require "laravel/installer">

Changed current directory to C:/Users/.../AppData/Roaming/Composer
[ComposerDownloaderTransportException]
  The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: No connection could be made because the target machine actively refused it.
Exception trace:
 () at phar://C:/xampp/htdocs/composer.phar/src/Composer/Util/RemoteFilesystem.php:297
 ComposerUtilRemoteFilesystem->get() at phar://C:/xampp/htdocs/composer.phar/src/Composer/Util/RemoteFilesystem.php:84
 ComposerUtilRemoteFilesystem->getContents() at phar://C:/xampp/htdocs/composer.phar/src/Composer/Repository/ComposerRepository.php:601
 ComposerRepositoryComposerRepository->fetchFile() at phar://C:/xampp/htdocs/composer.phar/src/Composer/Repository/ComposerRepository.php:415
 ComposerRepositoryComposerRepository->loadRootServerFile() at phar://C:/xampp/htdocs/composer.phar/src/Composer/Repository/ComposerRepository.php:246
 ComposerRepositoryComposerRepository->hasProviders() at phar://C:/xampp/htdocs/composer.phar/src/Composer/DependencyResolver/Pool.php:99
 ComposerDependencyResolverPool->addRepository() at phar://C:/xampp/htdocs/composer.phar/src/Composer/Command/InitCommand.php:565
 ComposerCommandInitCommand->getPool() at phar://C:/xampp/htdocs/composer.phar/src/Composer/Command/InitCommand.php:601
 ComposerCommandInitCommand->findBestVersionForPackage() at phar://C:/xampp/htdocs/composer.phar/src/Composer/Command/InitCommand.php:334
 ComposerCommandInitCommand->determineRequirements() at phar://C:/xampp/htdocs/composer.phar/src/Composer/Command/RequireCommand.php:107
 ComposerCommandRequireCommand->execute() at phar://C:/xampp/htdocs/composer.phar/vendor/symfony/console/Command/Command.php:256
 SymfonyComponentConsoleCommandCommand->run() at phar://C:/xampp/htdocs/composer.phar/vendor/symfony/console/Application.php:838
 SymfonyComponentConsoleApplication->doRunCommand() at phar://C:/xampp/htdocs/composer.phar/vendor/symfony/console/Application.php:189
 SymfonyComponentConsoleApplication->doRun() at phar://C:/xampp/htdocs/composer.phar/src/Composer/Console/Application.php:147
 ComposerConsoleApplication->doRun() at phar://C:/xampp/htdocs/composer.phar/vendor/symfony/console/Application.php:120
 SymfonyComponentConsoleApplication->run() at phar://C:/xampp/htdocs/composer.phar/src/Composer/Console/Application.php:82
 ComposerConsoleApplication->run() at phar://C:/xampp/htdocs/composer.phar/src/Composer/Command/GlobalCommand.php:80
 ComposerCommandGlobalCommand->run() at phar://C:/xampp/htdocs/composer.phar/vendor/symfony/console/Application.php:838
 SymfonyComponentConsoleApplication->doRunCommand() at phar://C:/xampp/htdocs/composer.phar/vendor/symfony/console/Application.php:189
 SymfonyComponentConsoleApplication->doRun() at phar://C:/xampp/htdocs/composer.phar/src/Composer/Console/Application.php:147
 ComposerConsoleApplication->doRun() at phar://C:/xampp/htdocs/composer.phar/vendor/symfony/console/Application.php:120
 SymfonyComponentConsoleApplication->run() at phar://C:/xampp/htdocs/composer.phar/src/Composer/Console/Application.php:82
 ComposerConsoleApplication->run() at phar://C:/xampp/htdocs/composer.phar/bin/composer:43
 require() at C:xampphtdocscomposer.phar:24`

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort
packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...
C:xampphtdocs>

我会从启用作曲家的详细输出开始,例如

composer -v install

可能会提供一些启示,但不能保证

相关内容

  • 没有找到相关文章

最新更新