加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

twitter-bootstrap – 无法使用composer安装或更新Packagist包“

发布时间:2020-12-17 21:29:46 所属栏目:安全 来源:网络整理
导读:我在法语版的 WindowsNT上工作(我说你对法语中的名字如“Mes Documents”并不感到惊讶). 我想在我的symfony2项目中添加“twbs/bootstrap”包.就像我以前做过一百次一样,我添加了这条线: "twbs/bootstrap": "dev-master", 在我的“composer.json”文件的“re
我在法语版的 WindowsNT上工作(我说你对法语中的名字如“Mes Documents”并不感到惊讶).

我想在我的symfony2项目中添加“twbs/bootstrap”包.就像我以前做过一百次一样,我添加了这条线:

"twbs/bootstrap": "dev-master",

在我的“composer.json”文件的“require”部分,位于我项目的根目录中.

这是我的“composer.json”文件的副本:

{
    "name": "symfony/framework-standard-edition","license": "MIT","type": "project","description": "The "Symfony Standard Edition" distribution","autoload": {
        "psr-0": { "": "src/" }
    },"require": {
        "php": ">=5.3.3","symfony/symfony": "~2.4","doctrine/orm": "~2.2,>=2.2.3","doctrine/doctrine-bundle": "~1.2","twig/extensions": "~1.0","symfony/assetic-bundle": "~2.3","symfony/swiftmailer-bundle": "~2.3","symfony/monolog-bundle": "~2.4","sensio/distribution-bundle": "~2.3","sensio/framework-extra-bundle": "~3.0","sensio/generator-bundle": "~2.3","incenteev/composer-parameter-handler": "~2.0","jms/security-extra-bundle": "dev-master","doctrine/data-fixtures": "dev-master","doctrine/doctrine-fixtures-bundle": "dev-master","friendsofsymfony/user-bundle": "dev-master","gregwar/captcha-bundle": "dev-master","mopa/bootstrap-bundle": "dev-master","twbs/bootstrap": "dev-master","knplabs/knp-paginator-bundle": "dev-master","knplabs/knp-menu-bundle": "dev-master","knplabs/knp-menu": "2.0.*@dev","craue/formflow-bundle": "dev-master","twitter/bootstrap": "v3.0.0"
    },"scripts": {
        "post-install-cmd": [
            "IncenteevParameterHandlerScriptHandler::buildParameters","SensioBundleDistributionBundleComposerScriptHandler::buildBootstrap","SensioBundleDistributionBundleComposerScriptHandler::clearCache","SensioBundleDistributionBundleComposerScriptHandler::installAssets","SensioBundleDistributionBundleComposerScriptHandler::installRequirementsFile","MopaBundleBootstrapBundleComposerScriptHandler::postInstallSymlinkTwitterBootstrap"
        ],"post-update-cmd": [
            "IncenteevParameterHandlerScriptHandler::buildParameters","MopaBundleBootstrapBundleComposerScriptHandler::postInstallSymlinkTwitterBootstrap"
        ]
    },"config": {
        "bin-dir": "bin"
    },"extra": {
        "symfony-app-dir": "app","symfony-web-dir": "web","incenteev-parameters": {
            "file": "app/config/parameters.yml"
        },"branch-alias": {
            "dev-master": "2.4-dev"
        }
    }
}

然后我在命令提示符中输入以下命令:

> CD [project_root]
>"C:wampbinphpphp5.4.16php.exe" "[composer_dir]composer.phar" self-update 
You are already using composer version 4ec4ba1397e7cc07c0986d866b62397091e7d20d.
>"C:wampbinphpphp5.4.16php.exe" "[composer_dir]composer.phar" "--no-interaction" "update" "--dev" -vvv > composer-log.log 2>&1

这是生成的日志文件(composer-log.log):

Reading ./composer.json
Executing command (CWD): git describe --exact-match --tags
Executing command (CWD): git branch --no-color --no-abbrev -v
Loading composer repositories with package information
Downloading https://packagist.org/packages.json
Writing %APPDATA%/Composer/cache/repo/https---packagist.org/packages.json into cache
Downloading https://packagist.org/p/provider-active$c9b925fde76c682bbb9b60faffed20f3cacc2cf5556f12fd45dec91b83f401d3.json
Writing %APPDATA%/Composer/cache/repo/https---packagist.org/p-provider-active.json into cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/p-provider-archived.json from cache
Downloading https://packagist.org/p/provider-latest$8fd2e34b72514bcb6126df884cc31c37d686ab44149914a5002486dccd9e84c4.json
Writing %APPDATA%/Composer/cache/repo/https---packagist.org/p-provider-latest.json into cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/p-provider-stale.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$framework-standard-edition.json from cache
Updating dependencies (including require-dev)
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$symfony.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-doctrine$orm.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-doctrine$doctrine-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-twig$extensions.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$assetic-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$swiftmailer-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$monolog-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-sensio$distribution-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-sensio$framework-extra-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-sensio$generator-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-incenteev$composer-parameter-handler.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-jms$security-extra-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-doctrine$data-fixtures.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-doctrine$doctrine-fixtures-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-friendsofsymfony$user-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-gregwar$captcha-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-mopa$bootstrap-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-twbs$bootstrap.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-knplabs$knp-paginator-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-knplabs$knp-menu-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-knplabs$knp-menu.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-craue$formflow-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-twitter$bootstrap.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-doctrine$lexer.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-doctrine$annotations.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-doctrine$common.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-doctrine$cache.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-doctrine$inflector.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-doctrine$collections.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-twig$twig.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-psr$log.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$icu.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$browser-kit.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$class-loader.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$config.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$console.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$css-selector.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$debug.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$dependency-injection.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$doctrine-bridge.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$dom-crawler.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$event-dispatcher.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$expression-language.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$filesystem.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$finder.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$form.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$framework-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$http-foundation.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$http-kernel.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$intl.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$locale.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$monolog-bridge.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$options-resolver.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$process.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$propel1-bridge.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$property-access.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$proxy-manager-bridge.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$routing.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$security.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$security-acl.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$security-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$security-core.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$security-csrf.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$security-http.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$serializer.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$stopwatch.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$swiftmailer-bridge.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$templating.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$translation.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$twig-bridge.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$twig-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$validator.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$web-profiler-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$yaml.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-jdorn$sql-formatter.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-doctrine$dbal.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-monolog$monolog.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-swiftmailer$swiftmailer.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$doctrine-abstract-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-symfony$doctrine-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-gregwar$captcha.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-jms$cg.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-phpoption$phpoption.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-jms$parser-lib.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-jms$metadata.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-jms$aop-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-jms$di-extra-bundle.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-silex$silex.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-igorw$config-service-provider.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-cilex$console-service-provider.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-justinrainbow$json-schema.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-mlebkowski$crane.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-pimple$pimple.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-kriswallsmith$assetic.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-mopa$composer-bridge.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-knplabs$knp-components.json from cache
Reading %APPDATA%/Composer/cache/repo/https---packagist.org/provider-jasny$bootstrap.json from cache
  - Installing twbs/bootstrap (dev-master 3a62811)
    Cloning 3a62811bbde4e428df1882bddf940f40381a8d41
Executing command (CWD): git clone "git://github.com/twbs/bootstrap.git" "C:wampwwwPORTALDEV2vendortwbs/bootstrap" && cd /D "C:wampwwwPORTALDEV2vendortwbs/bootstrap" && git remote add composer "git://github.com/twbs/bootstrap.git" && git fetch composer



  [SymfonyComponentProcessExceptionProcessTimedOutException]               
  The process "git clone "git://github.com/twbs/bootstrap.git" "C:wampwwwP  
  ORTALDEV2vendortwbs/bootstrap" && cd /D "C:wampwwwPORTALDEV2vendor  
  twbs/bootstrap" && git remote add composer "git://github.com/twbs/bootstrap  
  .git" && git fetch composer" exceeded the timeout of 300 seconds.            



Exception trace:
 () at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/vendor/symfony/process/Symfony/Component/Process/Process.php:984
 SymfonyComponentProcessProcess->checkTimeout() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/vendor/symfony/process/Symfony/Component/Process/Process.php:256
 SymfonyComponentProcessProcess->start() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/vendor/symfony/process/Symfony/Component/Process/Process.php:198
 SymfonyComponentProcessProcess->run() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/src/Composer/Util/ProcessExecutor.php:61
 ComposerUtilProcessExecutor->execute() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/src/Composer/Downloader/GitDownloader.php:323
 ComposerDownloaderGitDownloader->runCommand() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/src/Composer/Downloader/GitDownloader.php:43
 ComposerDownloaderGitDownloader->doDownload() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/src/Composer/Downloader/VcsDownloader.php:59
 ComposerDownloaderVcsDownloader->download() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/src/Composer/Downloader/DownloadManager.php:182
 ComposerDownloaderDownloadManager->download() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/src/Composer/Installer/LibraryInstaller.php:155
 ComposerInstallerLibraryInstaller->installCode() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/src/Composer/Installer/LibraryInstaller.php:86
 ComposerInstallerLibraryInstaller->install() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/src/Composer/Installer/InstallationManager.php:153
 ComposerInstallerInstallationManager->install() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/src/Composer/Installer/InstallationManager.php:140
 ComposerInstallerInstallationManager->execute() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/src/Composer/Installer.php:515
 ComposerInstaller->doInstall() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/src/Composer/Installer.php:210
 ComposerInstaller->run() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/src/Composer/Command/UpdateCommand.php:123
 ComposerCommandUpdateCommand->execute() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:241
 SymfonyComponentConsoleCommandCommand->run() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:881
 SymfonyComponentConsoleApplication->doRunCommand() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:191
 SymfonyComponentConsoleApplication->doRun() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/src/Composer/Console/Application.php:117
 ComposerConsoleApplication->doRun() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:121
 SymfonyComponentConsoleApplication->run() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/src/Composer/Console/Application.php:83
 ComposerConsoleApplication->run() at phar://%HOMEPATH%/Mes documents/NetBeansProjects/composer.phar/bin/composer:43
 require() at %HOMEPATH%Mes documentsNetBeansProjectscomposer.phar:15


update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]

这是“%APPDATA%/ Composer / cache / repo / https — packagist.org/provider-jasny$bootstrap.json”文件(我认为问题来自这里):

{"packages":{"jasny/bootstrap":{"dev-gh-pages":
{"name":"jasny/bootstrap","description":"An extended version of Twitter Bootstrap","keywords":["css","bootstrap"],"homepage":"http://jasny.github.io/bootstrap","version":"dev-gh-pages","version_normalized":"dev-gh-pages","license":["Apache-2.0"],"authors":[{"name":"Arnold Daniels","email":"arnold@jasny.net","homepage":"http://www.jasny.net"},{"name":"Jacob Thornton","email":"jacobthornton@gmail.com"},{"name":"Mark Otto","email":"markdotto@gmail.com"}
],"source":{"type":"git","url":"https://github.com/jasny/bootstrap.git","reference":"fcf399801646abb4e978672b2efe69343aa9170b"},"dist":{"type":"zip","url":"https://api.github.com/repos/jasny/bootstrap/zipball/fcf399801646abb4e978672b2efe69343aa9170b","reference":"fcf399801646abb4e978672b2efe69343aa9170b","shasum":""},"type":"library","time":"2013-11-18T21:31:57+00:00","replace":{"twitter/bootstrap":"3.0.0"},"uid":95714},"dev-master":{"name":"jasny/bootstrap","version":"dev-master","version_normalized":"9999999-dev","reference":"371f6d510ba7c7bd6387d45cc7df6fb5973ce89c"},"url":"https://api.github.com/repos/jasny/bootstrap/zipball/371f6d510ba7c7bd6387d45cc7df6fb5973ce89c","reference":"371f6d510ba7c7bd6387d45cc7df6fb5973ce89c","time":"2014-01-22T19:38:24+00:00","uid":68558},"v2.2.2-p3":{"name":"jasny/bootstrap","description":"Sleek,intuitive,and powerful front-end framework for faster and easier web development.","homepage":"http://jasny.github.com/bootstrap/","version":"v2.2.2-p3","version_normalized":"2.2.2.0-patch3",{"name":"Twitter Inc."}
],"reference":"3ab1bb7e4a539066c0fb8840fe0b22b6385a7579"},"url":"https://api.github.com/repos/jasny/bootstrap/zipball/3ab1bb7e4a539066c0fb8840fe0b22b6385a7579","reference":"3ab1bb7e4a539066c0fb8840fe0b22b6385a7579","time":"2013-07-12T12:02:23+00:00","target-dir":"jasny/bootstrap","replace":{"twitter/bootstrap":"2.2.2"},"uid":68568},"v2.3.0-p4":{"name":"jasny/bootstrap","version":"v2.3.0-p4","version_normalized":"2.3.0.0-patch4","reference":"9ec4b5736e226b0e517797709ac1feb6bd0c31d2"},"url":"https://api.github.com/repos/jasny/bootstrap/zipball/9ec4b5736e226b0e517797709ac1feb6bd0c31d2","reference":"9ec4b5736e226b0e517797709ac1feb6bd0c31d2","time":"2013-07-12T12:03:30+00:00","replace":{"twitter/bootstrap":"2.3.0"},"uid":68569},"v2.3.0-p5":{"name":"jasny/bootstrap","version":"v2.3.0-p5","version_normalized":"2.3.0.0-patch5","reference":"5f7af187b56a29404489609908ee9689437bb4b1"},"url":"https://api.github.com/repos/jasny/bootstrap/zipball/5f7af187b56a29404489609908ee9689437bb4b1","reference":"5f7af187b56a29404489609908ee9689437bb4b1","time":"2013-07-12T12:03:00+00:00","uid":68570},"v2.3.1-p6":{"name":"jasny/bootstrap","version":"v2.3.1-p6","version_normalized":"2.3.1.0-patch6","reference":"c681d5016e67e1aaa2b07a80da45e9ea67e6b924"},"url":"https://api.github.com/repos/jasny/bootstrap/zipball/c681d5016e67e1aaa2b07a80da45e9ea67e6b924","reference":"c681d5016e67e1aaa2b07a80da45e9ea67e6b924","time":"2013-07-12T11:58:09+00:00","replace":{"twitter/bootstrap":"2.3.1"},"uid":68571},"v3.0.0-p7":{"name":"jasny/bootstrap","version":"v3.0.0-p7","version_normalized":"3.0.0.0-patch7","reference":"fbad6209c493234142ef2ee11b6f69c2053a2888"},"url":"https://api.github.com/repos/jasny/bootstrap/zipball/fbad6209c493234142ef2ee11b6f69c2053a2888","reference":"fbad6209c493234142ef2ee11b6f69c2053a2888","time":"2013-10-29T23:32:28+00:00","uid":95716},"v3.0.1-p7":{"name":"jasny/bootstrap","version":"v3.0.1-p7","version_normalized":"3.0.1.0-patch7","reference":"a977d5ce6a2ab6f77d9f57559fc3ae2b4ab77d37"},"url":"https://api.github.com/repos/jasny/bootstrap/zipball/a977d5ce6a2ab6f77d9f57559fc3ae2b4ab77d37","reference":"a977d5ce6a2ab6f77d9f57559fc3ae2b4ab77d37","time":"2013-11-01T19:54:20+00:00","uid":97356}
}
}
}

在错误之后,我尝试通过以下命令手动完成“twbs / bootstrap”包的git pull:

> CD vendortwbsbootstrap
> git pull
Already up-to-date.

因此,似乎已完成包的下载,唯一的问题来自更新编写器缓存,我不知道为什么.

为了您的信息,当我尝试更新其他软件包或安装新软件包时,我的作曲家仍在工作. “twbs/bootstrap”是唯一导致此问题的人.

如果你能给我解决这个问题的想法,我将非常感谢你.

解决方法

在composer.json中添加一个稳定标记版本的bootstrap:

"require":
    "twbs/bootstrap": "3.0.3"

或者只是运行:

composer require twbs/bootstrap:3.0.3

否则,任何引导程序更新都可能轻易破坏您的应用程序,因为可能会引入新功能(破坏向后兼容性).

现在 – 您可以告诉作曲家下载您的依赖项的dist zip-package而不是使用git协议更新依赖项.如果遇到连接问题或超时,这通常会有所帮助.

composer update twbs/bootstrap --prefer-dist --no-dev --optimize-autoloader

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读