question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error when trying to install @ngtoolkit/serverless

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:14

github_iconTop GitHub Comments

4reactions
m47eencommented, Nov 30, 2018

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.

@ng-toolkit/serverless@1.1.47 postinstall D:\My Documents\Source\angularSeo\node_modules@ng-toolkit\serverless node postinstall.js

Do you ❤️ @ng-toolkit/serverless?

Star it on GitHub! https://github.com/maciejtreder/ng-toolkit

Become a donor:

https://www.angular-universal-pwa.maciejtreder.com/donors

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”})

  • @ng-toolkit/serverless@1.1.47 removed 40 packages, updated 1 package and audited 99615 packages in 22.958s found 0 vulnerabilities

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)

spawn-sync@1.0.15 postinstall D:\My Documents\Source\angularSeo\node_modules\spawn-sync node postinstall

serverless@1.26.1 postinstall D:\My Documents\Source\angularSeo\node_modules\serverless node ./scripts/postinstall.js

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.

1reaction
AbuHanicommented, Mar 12, 2019

@Unn

I am still getting the same error while using Node version 10.15.3, serverless ver 1.38.0, but in package.json file the version is shown as 1.26.1. Please help to solve the issue

did you try my solution ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found