所以基本上我在我的Windows安装上使用composer没有任何问题.突然,我在每个项目上都出现了这个错误(手动安装composer.phar):
[RuntimeException]
Could not rename "Xampp\htdocs\symfony.dev\vendor/twig/twig/fabpot-Twig-
70fff8b" to "Users\xxx\AppData\Local\Temp/23cd0cd163431d8305983511f9
b1c2af".
Run Code Online (Sandbox Code Playgroud)
我尝试在不同的php应用程序上安装或更新.总是一样的结果.
此外,我试图通过Windows安装程序安装作曲家,这导致我出现此错误消息:
Internal Error [ERR_LOGIC]: An internal script did not run correctly (exit code 1)
Run Code Online (Sandbox Code Playgroud)
到目前为止,我无法获得任何官方帮助.还有其他人遇到过这个错误吗?感谢您的帮助......非常感谢!
我想在我的基于PHP的项目中使用adldap/adldap库.虽然此软件包的维护者尚未将此软件包添加到packagist,但它们已包含一个composer.json文件.所以,通常情况下,我只是添加以下我的MY composer.json,并开始我的一天.
"repositories": [
{
"type": "vcs",
"url": "https://github.com/adldap/adLDAP"
}],
"require": {
/* my other packages */
"adldap/adldap":"4.04"
},
Run Code Online (Sandbox Code Playgroud)
但是,这不起作用,因为adldap/adldap已经由packagist中的另一个项目声明,并且作曲家总是假设我想要packagist包.(使事情变得更复杂,packagist包是原始项目的一个分支,以及一个不接受上游更改的fork).
有没有办法告诉编写者更喜欢配置的VCS存储库中的版本?或者我是不是自己动了包裹,改名,然后把作曲家指向我的叉子?(或者其他一个叉子是否可以解决这个问题呢?)
我收到一个400连接http的错误请求的问题,似乎该包只想通过http安装.我尝试在composer.json中覆盖,因为其他人试图强制使用https作为解决方法 - 但这似乎不起作用.我不在防火墙后面.Mac OS 10.10.3
问题 :
composer diagnose
Checking composer.json: FAIL
the property name is required
the property description is required
No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: FAIL
[Composer\Downloader\TransportException] The "http://packagist.org/packages.json" file could not be downloaded (HTTP/1.1 400 Bad Request)
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free …Run Code Online (Sandbox Code Playgroud) 我在向packagist添加新的包版本时遇到问题.
https://github.com/skydriver/stripe-request https://packagist.org/packages/skydriver/stripe-request
我的项目在Git Hub上(带有webhooks),Dev版本和第一个发布版本已成功添加到packagist,但是当我尝试创建新版本时,它没有显示在packagist上......这是我的git日志:
damjan@damjan-dev:~/www/projects/stripe/new-release$ git clone https://github.com/skydriver/stripe-request.git
Cloning into 'stripe-request'...
remote: Counting objects: 38, done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 38 (delta 15), reused 21 (delta 5), pack-reused 0
Unpacking objects: 100% (38/38), done.
Checking connectivity... done.
...
damjan@damjan-dev:~/www/projects/stripe$ cd new-release/stripe-request/
damjan@damjan-dev:~/www/projects/stripe/new-release/stripe-request$ git add .
damjan@damjan-dev:~/www/projects/stripe/new-release/stripe-request$ git commit -m "New release"
[master fc9a023] New release
1 file changed, 349 insertions(+)
create mode 100644 StripeRequest.php
damjan@damjan-dev:~/www/projects/stripe/new-release/stripe-request$ git push origin master
Username for 'https://github.com': SkyDriver
Password for …Run Code Online (Sandbox Code Playgroud) 我正在学习如何在 packagist.org 上上传包。我创建了一个用于使用 composer.json 文件进行测试的 github 存储库 - https://github.com/perials/check 和一个使用此 github 存储库的 composer 包 - https://packagist.org/packages/perials/check
当我尝试使用安装此软件包时出现composer require perials/check以下错误
[InvalidArgumentException]
Could not find a version of package perials/check matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability.
Run Code Online (Sandbox Code Playgroud)
根据我在关于 SO 的其他相关问题中读到的内容,如果 github 分支没有稳定版本,则会发生此错误。但问题是我已经有一些版本了。
我也试过composer require perials/check:dev-master,composer require perials/check:7.1.0但后来我得到以下错误
[InvalidArgumentException]
Could not find package perials/check.
Did you mean this?
perials/check
Run Code Online (Sandbox Code Playgroud) 我需要将TCPDF集成为Symfony 2.1中的第三方库.
我在composer.json中尝试过
"repositories": [
{
"type": "vcs",
"url": "git://tcpdf.git.sourceforge.net/gitroot/tcpdf/tcpdf"
}
],
"require": {
"tcpdf/tcpdf":"*"
},
Run Code Online (Sandbox Code Playgroud)
但它给出了一个错误 The requested package tcpdf * could not be found.
如何在composer.json文件中更正第三方库?
TCPDF库不遵循命名空间,那么我们如何在捆绑中访问这个库?
我知道我可以使用,composer update vendor/package但这是我的情况.
更新时Composer非常慢,我安装了大约6个软件包,并从本地文件夹加载了一个本地vcs软件包.当我composer update为特定的本地包运行时,作曲家连接到Packagist寻找其他更新,这个过程非常慢,我不知道这是我的电脑还是我的互联网.我有没有办法告诉作曲家只是在composer update local/package没有联系Packagist并运行它下载的所有重json文件的情况下运行时从本地文件夹更新包?
注意: 我知道如何加载本地编写器包.这是完美的加载,只是我正在寻找一种方法来告诉作曲家只是加载本地包而不联系Packagist.
"repositories": [
{
"type": "vcs",
"url": "../local/package"
}
],
Run Code Online (Sandbox Code Playgroud)
我的问题是联系Packagist的速度很慢.运行composer update local/package -vvv显示它仍然从packagist下载json文件,即使它被告知仅更新local/package.
我正在尝试创建自定义供应商包,但尚未将该包放在 packagist 上。根据文档,可以从 git (vcs) 而不是 packagist 加载包:https://getcomposer.org/doc/05-repositories.md#loading-a-package-from-a-vcs-repository
yii2 项目(尽管不认为框架很重要)我在供应商文件夹中创建了包:
Foundationize/yii2-foundation (文件夹结构如上,我进行了四重检查)。
我的根 public_html/composer.json 有以下条目:
"minimum-stability": "dev",
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": ">=2.0.5",
"yiisoft/yii2-swiftmailer": "*",
"foundationize/yii2-foundation": "dev-master"
},
Run Code Online (Sandbox Code Playgroud)
我的包作曲家文件,vendor/foundationize/yii2-foundation/composer.json 看起来像:
{
"name": "foundationize/yii2-foundation",
"description": "The Foundation extension for the Yii2 framework",
"keywords": ["yii2", "foundation"],
"type": "yii2-extension",
"license": "BSD-3-Clause",
"support": {
"issues": "https://github.com/foundationize/yii2-foundation/issues",
"wiki": "https://github.com/foundationize/yii2-foundation/wiki",
"source": "https://github.com/foundationize/yii2-foundation.git"
},
"authors": [
{
"name": "gvanto",
"email": "gvanto@hotmail.com",
"homepage": "http://foundationize.com"
}
],
"require": {
"yiisoft/yii2": "*"
},
"autoload": {
"psr-4": {
"foundationize\\foundation\\": "" …Run Code Online (Sandbox Code Playgroud) 在阻止出站 http 请求的环境中构建文件时,我收到如下错误:
Updating dependencies (including require-dev)
The "http://packagist.org/p/provider-2013%ahash.json" file could not be downloaded: failed to open stream: Connection timed out
http://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
有没有什么方法可以指示composer使用https连接到packagist?
我在 1.2.0 和 1.6.5 版本的作曲家中都遇到过这个问题。
packagist ×10
composer-php ×9
php ×8
github ×3
git ×2
symfony ×2
install ×1
laravel ×1
release ×1
symfony-2.1 ×1