E2E test fails in Docker locally due to missing "libelf.so.1"
Created by: dallonf
Is this a bug report?
Yes.
Can you also reproduce the problem with npm 4.x?
I can reproduce in v3.10.3 and v4.6.1.
Which terms did you search for in User Guide?
"e2e", "docker", "libelf"
Environment
-
node -v
: v6.3.1 -
npm -v
: 4.6.1 -
create-react-app
version: commit7796c94
Then, specify:
- Operating system: Mac OS X v10.12.5
- Docker version: 17.06.0-ce-mac18
Steps to Reproduce
- Clone
create-react-app
from master - Run
npm install
- Run
npm e2e:docker
Expected Behavior
The end-to-end test script should run in Docker and pass.
Actual Behavior
After running for a while, the test script exits with this error message:
> react-error-overlay@1.0.8 test /home/node/create-react-app/packages/react-error-overlay
> flow && jest
/home/node/create-react-app/packages/react-error-overlay/node_modules/flow-bin/flow-linux64-v0.46.0/flow: error while loading shared libraries: libelf.so.1: cannot open shared object file: No such file or directory
npm info lifecycle react-error-overlay@1.0.8~test: Failed to exec test script
npm ERR! Test failed. See above for more details.
++ set +x
e2e-simple.sh: ERROR! An error was encountered executing line 132.
Cleaning up.
Exiting with error.
✘ Job failes
✨ Done in 119.36s.