serverless: Node.js v10.7 fails to install serverless

This is a Bug Report

Description

For bug reports:

  • What went wrong? “npm install” fails at the serverless@1.28.0 postinstall script.

  • What did you expect should have happened? I had expected to install the serverless package.

  • What was the config you used?: Nothing.

  • What stacktrace or error message from your provider did you see?: Nothing.

Additional Data

  • Serverless Framework Version you’re using: v1.28.0

  • Operating System: macOS 10.13.6 Node.js v10.7.0

  • Stack Trace:

$ npm install

> serverless@1.28.0 postinstall /Users/itok/workspace/serverless
> node ./scripts/postinstall.js

Error: socket hang up
    at createHangUpError (_http_client.js:313:15)
    at TLSSocket.socketOnEnd (_http_client.js:416:23)
    at TLSSocket.emit (events.js:187:15)
    at TLSSocket.EventEmitter.emit (domain.js:442:20)
    at endReadableNT (_stream_readable.js:1081:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  • Provider Error messages: Nothing.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 34
  • Comments: 23 (5 by maintainers)

Commits related to this issue

Most upvoted comments

But the below solved my issue 👍

nvm install v10.6.0

The following command worked for me as well.

nvm install v10.6.0

@aelshamy I fixed it by nvm install v10.6.0 that’s really simply.

Sorry for my late reply, after upgrading to 1.29.0 I no longer had this issue.

Yep just got published! Thanks everyone for reporting and fixing 😊

Just merged the fix! Thanks for investigating and working on that @kei-ito 👍