2016-04-15 105 views
0

我試圖做部署jhipster 3.0.0項目AWS,指導這裏以下內容:http://jhipster.github.io/aws/Jhipster 3.0.0部署到AWS

的問題是,「喲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) 

回答

0

我剛剛遇到了這個問題。我通過在s3.js文件中的signatureVersionhttpOptions之後添加,來解決它。它應該看起來像這樣:

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