The command "npm install jest-expo" failed and exited with 1 during

Issue:
I tried a very simple implementation for a bare bones repo - the travis yaml has only the failing command.

Goal
Get travis to successfully build and run tests for expo with detox

.travis.yml

os: osx
  
install:
- npm install jest-expo

Travis build link
https://travis-ci.com/bryanboyko/ExpoDetoxTravis/builds/150757293

Github PR

You are using Ruby as the language, while using npm to manage your dependencies. I don’t know off hand what version of Node.js and npm your image has, but whatever the case, I’d first try using language: node_js and find a reasonable version that works.

Please read

1 Like

After specifying node language and adding a target version (one from my local machine that successfully runs detox tests), the build errored with the same output

The command "npm install jest-expo" failed and exited with 1 during .

.travis.yml

os: osx
  
language: node_js
node_js:
  - 12.12.0

install:
- npm install jest-expo

Travis build
https://travis-ci.com/bryanboyko/ExpoDetoxTravis/builds/150878747

Github PR

The log says there’s a problem with detox@15.4.1 postinstall script and there’s some helpful output from that script above that. It’s your job to diagnose it. There’s no visible issue on Travis side so far.

@native-api thank you. I’ll take a look.

Imprint