在windows中安装编写器错误



试图通过命令行在windows中安装编写器。composer.phar下载。把它放在C/wamp/www/s/文件夹中。安装过程中出现错误

(RuntimeException)make: ***没有make目标' compile-json'的规则。停止。

我现在该怎么办?

这是我的composer.json

{
"name": "aws/aws-sdk-php",
"homepage": "http://aws.amazon.com/sdkforphp",
"description": "AWS SDK for PHP - Use Amazon Web Services in your PHP project",
"keywords": ["aws","amazon","sdk","s3","ec2","dynamodb","cloud","glacier"],
"type": "library",
"license": "Apache-2.0",
"authors": [
    {
        "name": "Amazon Web Services",
        "homepage": "http://aws.amazon.com"
    }
],
"support": {
    "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
    "issues": "https://github.com/aws/aws-sdk-php/issues"
},
"require": {
    "php": ">=5.5",
    "guzzlehttp/guzzle": ">=5.3|~6.0.1|~6.1",
    "guzzlehttp/guzzle":"~4.0",
    "guzzlehttp/psr7": "~1.0",
    "guzzlehttp/promises": "~1.0",
    "mtdowling/jmespath.php": "~2.2"
},
"require-dev": {
    "ext-openssl": "*",
    "ext-pcre": "*",
    "ext-spl": "*",
    "ext-json": "*",
    "ext-dom": "*",
    "ext-simplexml": "*",
    "phpunit/phpunit": "~4.0",
    "behat/behat": "~3.0",
    "doctrine/cache": "~1.4",
    "aws/aws-php-sns-message-validator": "~1.0"
},
"suggest": {
    "ext-openssl": "Allows working with CloudFront private distributions and     verifying received SNS messages",
    "ext-curl": "To send requests using cURL",
    "doctrine/cache": "To use the DoctrineCacheAdapter"
},
"autoload": {
    "psr-4": {
        "Aws\": "src/"
    },
    "files": ["src/functions.php"]
},
"autoload-dev": {
    "psr-4": {
        "Aws\Test\": "tests/"
    }
},
"extra": {
    "branch-alias": {
        "dev-master": "3.0-dev"
    }
},
"scripts": {
    "post-autoload-dump": [
        "make compile-json"
    ]
}
}

感谢您发布您的composer.json文件。

错误来自以下无效条目:

"scripts": {
    "post-autoload-dump": [
        "make compile-json"
    ]
}

make命令不能在Windows上工作。

我建议直接删除文件的这一部分,然后再试一次。

(我不清楚,您的项目依赖关系需要额外的make步骤以及为什么要添加它。)无论如何,这个composer.json似乎与https://github.com/aws/aws-sdk-php/blob/master/composer.json相同。如果你想为这个项目做出贡献,问他们如何在Windows上构建:)


如果您只是想获取aws-sdk-php包。遵循它们的安装指南:http://docs.aws.amazon.com/aws-sdk-php/v3/guide/getting-started/installation.html

在CLI中使用php composer.phar require aws/aws-sdk-php

或者将aws/aws-sdk-php添加到require部分,然后运行composer install,如下所示:

{
    "require": {
        "aws/aws-sdk-php": "^3.3"
    }
}

相关内容

  • 没有找到相关文章

最新更新