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! [email protected] e2e: `ng e2e`
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the [email protected] 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

 

你可能感兴趣的:(Angular)