'socket hang up' happens when to install
See original GitHub issueI’m submitting a…
[X] Bug report
[ ] Feature request
[ ] Documentation issue or request
In package
[ ] @ng-toolkit/init
[X] @ng-toolkit/serverless
[ ] @ng-toolkit/universal
[ ] @ng-toolkit/pwa
[ ] @ng-toolkit/firebug
Current behavior
When ng add @ng-toolkit/serverless I got an error
Error: socket hang up at createHangUpError (_http_client.js:323:15) at TLSSocket.socketOnEnd (_http_client.js:426:23) at TLSSocket.emit (events.js:187:15) at TLSSocket.EventEmitter.emit (domain.js:441:20) at endReadableNT (_stream_readable.js:1094:12) at process._tickCallback (internal/process/next_tick.js:63:19) Emitted ‘error’ event at: at TLSSocket.socketOnEnd (_http_client.js:426:9) at TLSSocket.emit (events.js:187:15) [… lines matching original stack trace …] at process._tickCallback (internal/process/next_tick.js:63:19) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! serverless@1.26.1 postinstall:
node ./scripts/postinstall.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the serverless@1.26.1 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /home/um/.npm/_logs/2019-01-09T22_46_00_121Z-debug.log
Expected behavior
Install is completed.
Minimal reproduction of the problem with instructions
Example repository
What is the motivation / use case for changing the behavior?
Environment
Angular CLI: 7.2.1
Node: 10.14.2
OS: linux x64
Angular: 7.2.0
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.12.1
@angular-devkit/build-angular 0.12.1
@angular-devkit/build-optimizer 0.12.1
@angular-devkit/build-webpack 0.12.1
@angular-devkit/core 7.2.1
@angular-devkit/schematics 7.2.1
@angular/cli 7.2.1
@ngtools/webpack 7.2.1
@schematics/angular 7.2.1
@schematics/update 0.12.1
rxjs 6.3.3
typescript 3.2.2
webpack 4.23.1
Others:
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:8
Top GitHub Comments
+1
+1 ng add @ng-toolkit/serverless --provider aws
following walk through from https://www.youtube.com/watch?v=N-6LtzJezsk
I get
events.js:167 throw er; // Unhandled ‘error’ event ^
Error: socket hang up at createHangUpError (_http_client.js:323:15) at TLSSocket.socketOnEnd (_http_client.js:426:23) at TLSSocket.emit (events.js:187:15) at TLSSocket.EventEmitter.emit (domain.js:441:20) at endReadableNT (_stream_readable.js:1094:12) at process._tickCallback (internal/process/next_tick.js:63:19) Emitted ‘error’ event at: at TLSSocket.socketOnEnd (_http_client.js:426:9) at TLSSocket.emit (events.js:187:15) [… lines matching original stack trace …] at process._tickCallback (internal/process/next_tick.js:63:19) npm WARN @ng-toolkit/pwa@1.1.50 requires a peer of @angular/common@~7.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @ng-toolkit/pwa@1.1.50 requires a peer of @angular/core@~7.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @ng-toolkit/pwa@1.1.50 requires a peer of @angular/service-worker@~7.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @ng-toolkit/universal@1.1.50 requires a peer of @angular/common@~7.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @ng-toolkit/universal@1.1.50 requires a peer of @angular/core@~7.0.0 but none is installed. You must install peer dependencies yourself. npm WARN The package ts-loader is included as both a dev and production dependency. npm WARN The package webpack-cli is included as both a dev and production dependency. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! serverless@1.26.1 postinstall:
node ./scripts/postinstall.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the serverless@1.26.1 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.Running on …
Angular CLI: 7.2.3 Node: 10.15.0 OS: win32 x64 Angular: 7.2.2 … animations, common, compiler, compiler-cli, core, forms … http, language-service, platform-browser … platform-browser-dynamic, platform-server, router
Package Version
@angular-devkit/architect 0.12.3 @angular-devkit/build-angular 0.12.3 @angular-devkit/build-optimizer 0.12.3 @angular-devkit/build-webpack 0.12.3 @angular-devkit/core 7.2.3 @angular-devkit/schematics 7.2.3 @angular/cli 7.2.3 @ngtools/webpack 7.2.3 @schematics/angular 7.2.3 @schematics/update 0.12.3 rxjs 6.3.3 typescript 3.2.4 webpack 4.28.4