Skip to content
This repository was archived by the owner on Jul 24, 2019. It is now read-only.
This repository was archived by the owner on Jul 24, 2019. It is now read-only.

Error: Cannot find module 'request-progress' in Docker image #581

@amir20

Description

@amir20

Possibly related to #330.

docker run -it node:latest bash
npm install phantomjs-prebuilt

Errors with

Error: Cannot find module 'request-progress'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/node_modules/phantomjs-prebuilt/install.js:9:23)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)

Here is a gist of output.

I am not sure what is going on. This problem doesn't happen on Mac. Possibly related to Ubuntu. I also tried with this Dockerfile

FROM ubuntu:16.04
MAINTAINER Amir Raminfar <findamir@gmail.com>

RUN apt-get update && apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get install -y nodejs build-essential g++ flex bison gperf ruby perl \
  libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev \
  libpng-dev libjpeg-dev python libx11-dev libxext-dev

RUN npm install phantomjs-prebuilt

But I get same error.

Any body know what is going on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions