error when trying to install @ngtoolkit/serverless
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 trying to install @ng-toolkit/serverkess it throws an error
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.
Minimal reproduction of the problem with instructions
run ng add @ng-toolkit/serverless
Issue Analytics
- State:
- Created 5 years ago
- Comments:14
Top Results From Across the Web
@ng-toolkit/serverless - npm
Start using @ng-toolkit/serverless in your project by running `npm i @ng-toolkit/serverless`. There is 1 other project in the npm registry ...
Read more >Will Angular 12 supports @ng-toolkit/universal and allow for ...
I tried to install @ng-toolkit/universal without mentioning the version using the command ng add @ng-toolkit/universal .
Read more >Error - Socket hangup while using ng add @ng-toolkit ...
I am trying to add ng toolkit to an angular application using ng add @ng-toolkit/serverless --provider aws, always getting the error.
Read more >Troubleshooting AWS Cloud9
Error when running AWS Toolkit: "Your environment is running out of inodes, please increase 'fs.inotify.max_user_watches' limit." Notice: Failed to install ...
Read more >@ng-toolkit/serverless - NPM Package File explorer - Socket
Start using Socket to analyze @ng-toolkit/serverless and its 5 dependencies to secure ... Error trying to load file: Maximum number of retries exhausted....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
D:\My Documents\Source\angularSeo>ng add @ng-toolkit/serverless Your global Angular CLI version (7.0.6) is greater than your local version (6.1.5). The local Angular CLI version is used.
To disable this warning use “ng config -g cli.warnings.versionMismatch false”. Installing packages for tooling via npm.
Do you ❤️ @ng-toolkit/serverless?
Star it on GitHub! https://github.com/maciejtreder/ng-toolkit
Become a donor:
npm WARN @angular/platform-server@7.0.4 requires a peer of @angular/animations@7.0.4 but none is installed. You must install peer dependencies yourself. npm WARN @angular/platform-server@7.0.4 requires a peer of @angular/common@7.0.4 but none is installed. You must install peer dependencies yourself. npm WARN @angular/platform-server@7.0.4 requires a peer of @angular/compiler@7.0.4 but none is installed. You must install peer dependencies yourself. npm WARN @angular/platform-server@7.0.4 requires a peer of @angular/core@7.0.4 but none is installed. You must install peer dependencies yourself. npm WARN @angular/platform-server@7.0.4 requires a peer of @angular/platform-browser@7.0.4 but none is installed. You must install peer dependencies yourself. npm WARN @angular/platform-server@7.0.4 requires a peer of @angular/platform-browser-dynamic@7.0.4 but none is installed. You must install peer dependencies yourself. npm WARN @ng-toolkit/pwa@1.1.47 requires a peer of @angular/service-worker@~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.4 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
Installed packages for tooling via npm. INFO: Project property is set to ‘angularSeo’. DELETE serverless.yml CREATE serverless.yml (695 bytes) UPDATE package.json (2593 bytes) UPDATE lambda.js (859 bytes) UPDATE local.js (176 bytes) UPDATE webpack.server.config.js (1214 bytes) UPDATE src/environments/environment.serverless.ts (193 bytes) UPDATE src/environments/environment.prod.ts (182 bytes) UPDATE src/environments/environment.ts (785 bytes) UPDATE angular.json (4150 bytes) UPDATE src/app/app.component.ts (2370 bytes) UPDATE ng-toolkit.json (285 bytes)
events.js:167 throw er; // Unhandled ‘error’ event ^
Error: socket hang up at createHangUpError (_http_client.js:322:15) at TLSSocket.socketOnEnd (_http_client.js:425:23) at TLSSocket.emit (events.js:187:15) at TLSSocket.EventEmitter.emit (domain.js:442: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:425: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 @angular/platform-server@7.0.4 requires a peer of @angular/animations@7.0.4 but none is installed. You must install peer dependencies yourself. npm WARN @angular/platform-server@7.0.4 requires a peer of @angular/common@7.0.4 but none is installed. You must install peer dependencies yourself. npm WARN @angular/platform-server@7.0.4 requires a peer of @angular/compiler@7.0.4 but none is installed. You must install peer dependencies yourself. npm WARN @angular/platform-server@7.0.4 requires a peer of @angular/core@7.0.4 but none is installed. You must install peer dependencies yourself. npm WARN @angular/platform-server@7.0.4 requires a peer of @angular/platform-browser@7.0.4 but none is installed. You must install peer dependencies yourself. npm WARN @angular/platform-server@7.0.4 requires a peer of @angular/platform-browser-dynamic@7.0.4 but none is installed. You must install peer dependencies yourself. npm WARN @ng-toolkit/pwa@1.1.47 requires a peer of @angular/service-worker@~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.4 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: 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.npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\abdul-mateen.ishfaq\AppData\Roaming\npm-cache_logs\2018-11-30T19_23_35_666Z-debug.log Package install failed, see above.
@Unn
did you try my solution ?