Skip to content

RE FAIL: Downloading precompiled headless Chromium binary (stable channel) for AWS Lambda. #17

Open

Description

@quantumalchemy

Failed at the @serverless-chrome/lambda@1.0.0-55 postinstall script. >>
{ Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }
npm WARN enoent ENOENT: no such file or directory, open '/package.json'
npm WARN !invalid#1 No description
npm WARN !invalid#1 No repository field.
npm WARN !invalid#1 No README data
npm WARN !invalid#1 No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @serverless-chrome/lambda@1.0.0-55 postinstall: node scripts/postinstall.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @serverless-chrome/lambda@1.0.0-55 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! /root/.npm/_logs/2019-07-26T17_13_00_178Z-debug.log
The command '/bin/sh -c npm install t9tio/cloudquery' returned a non-zero code: 1

Activity

  1. quantumalchemy commented on Jul 29, 2019

    @quantumalchemy
    Author

    update - tried on Docker with node:10.16.0-alpine on aws download chrome but errors.. ->
    Downloading precompiled headless Chromium binary (stable channel) for AWS Lambda.
    Completed Headless Chromium download.
    npm WARN saveError ENOENT: no such file or directory, open '/package.json'
    npm notice created a lockfile as package-lock.json. You should commit this file.
    npm WARN enoent ENOENT: no such file or directory, open '/package.json'
    npm WARN !invalid#1 No description
    npm WARN !invalid#1 No repository field.
    npm WARN !invalid#1 No README data
    npm WARN !invalid#1 No license field.

    • cloudquery@1.0.0
      added 77 packages from 72 contributors and audited 160 packages in 7.759s
      found 0 vulnerabilities

    Removing intermediate container 99018088037d
    ---> 4fad82d16fd0
    Step 4/6 : RUN npm run sb
    ---> Running in 7dbfe536d30c
    npm ERR! path /package.json
    npm ERR! code ENOENT
    npm ERR! errno -2
    npm ERR! syscall open
    npm ERR! enoent ENOENT: no such file or directory, open '/package.json'
    npm ERR! enoent This is related to npm not being able to find a file.
    npm ERR! enoent

    npm ERR! A complete log of this run can be found in:
    npm ERR! /root/.npm/_logs/2019-07-29T14_09_46_089Z-debug.log
    The command '/bin/sh -c npm run sb' returned a non-zero code: 254

    ** anyway to get this to work in Docker ? Thanks! Great project!

  2. timqian commented on Jul 29, 2019

    @timqian
    Member

    seems some issue with serverless/chrome package, I can have a try tomorrow

  3. timqian commented on Jul 30, 2019

    @timqian
    Member

    npm i works for me
    May be network issue on your machine?

  4. quantumalchemy commented on Jul 30, 2019

    @quantumalchemy
    Author

    yeah Im trying to do this in docker
    tried on local network and on a AWS EC2 and getting :

    Downloading precompiled headless Chromium binary (stable channel) for AWS Lambda.
    Completed Headless Chromium download.
    npm WARN saveError ENOENT: no such file or directory, open '/package.json'
    npm notice created a lockfile as package-lock.json. You should commit this file.
    npm WARN enoent ENOENT: no such file or directory, open '/package.json'
    npm WARN !invalid#1 No description
    npm WARN !invalid#1 No repository field. .... Bla Bla

    guess this will not install on Docker .. weird
    will give it a try on bare metal
    Anyway Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions