Jhipster 3.0.0部署到aws

时间:2016-04-15 13:51:11

标签: amazon-web-services amazon-s3 jhipster

我尝试将jhipster 3.0.0项目部署到aws,按照此处的指南进行操作:http://jhipster.github.io/aws/

问题是" yo jhipster:aws"命令失败,并显示以下错误:

D:\Jenkins\workspace\CasualtyManager>yo jhipster:aws 
D:\Jenkins\workspace\CasualtyManager\node_modules\generator-jhipster\generators\aws\lib\s3.js:87
                httpOptions: {timeout: 600000}
                ^^^^^^^^^^^

SyntaxError: Unexpected identifier
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Jenkins\workspace\CasualtyManager\node_modules\generator-jhipster\generators\aws\lib\aws.js:2:10)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)

1 个答案:

答案 0 :(得分:0)

我刚遇到这个问题。我通过在s3.js文件中的,signatureVersion之后添加httpOptions来解决此问题。它应该是这样的:

signatureVersion: 'v4',
httpOptions: {timeout: 600000},