我有这样一个composer.json文件:
1 {
2 "require": {
3 "microsoft/windowsazure": "*"
4 },
5 "repositories": [
6 {
7 "type": "pear",
8 "url": "http://pear.php.net"
9 }
10 ],
11 "minimum-stability": "dev"
12 }
但是当我在Dreamweaver这样的编译器上编写这些代码时,它会在第二行产生语法错误。
我必须输入
来安装我的composer.phar
(与composer.json
在同一个根目录上)
php /d/website/public_html/website/composer.phar install
在Git上的命令,但它给出了这样的错误:
microsoft / windowsazure v0.4.0需要
pear-pear/http_request2
* - >没有 匹配包找到了
问题是由于语法错误造成的吗?
我该如何解决问题?
答案 0 :(得分:1)
作为github https://github.com/composer/composer/issues/2779#issuecomment-36627424上提到的stof,在根composer.json中添加azure的需求替换,所以composer.json将如下所示
{
"repositories": [
{
"type": "pear",
"url": "http://pear.php.net"
}
],
"require": {
"pear-pear.php.net/mail_mime" : "*",
"pear-pear.php.net/http_request2" : "*",
"pear-pear.php.net/mail_mimedecode" : "*",
"microsoft/windowsazure": "*"
}
}