angular mvn package:connect ETIMEDOUT 172.217.160.112:443

报错信息:

D:\spring-boot-angular-master>mvn package

。。。。。。

[ERROR]       throw er; // Unhandled 'error' event
[ERROR]       ^
[ERROR]
[ERROR] Error: connect ETIMEDOUT 172.217.160.112:443
[ERROR]     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1174:14)
[ERROR] Emitted 'error' event at:
[ERROR]     at Request.onRequestError (D:\spring-boot-angular-master\node_modules\request\request.js:877:8)
[ERROR]     at ClientRequest.emit (events.js:185:15)
[ERROR]     at TLSSocket.socketErrorListener (_http_client.js:395:9)
[ERROR]     at TLSSocket.emit (events.js:180:13)
[ERROR]     at emitErrorNT (internal/streams/destroy.js:64:8)
[ERROR]     at process._tickCallback (internal/process/next_tick.js:178:19)
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! errno 1
[ERROR] npm ERR! client@0.0.0 e2e: `ng e2e`
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the client@0.0.0 e2e script.
[ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[ERROR]
[ERROR] npm ERR! A complete log of this run can be found in:
[ERROR] npm ERR!     C:\Users\lenovo\AppData\Roaming\npm-cache\_logs\2018-08-10T11_28_53_259Z-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:05 min
[INFO] Finished at: 2018-08-10T19:28:57+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:npm (npm-test) on project angular-maven: Failed to run task: 'npm run-script e2e' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

解决办法:

npm install cross-env --save-dev

npm install

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值