Detox: Running `detox-cli` from project `node_modules` causes an error

Created on 8 Jun 2017  路  2Comments  路  Source: wix/Detox

yarn add detox-cli --dev
yarn run detox

This results in:

node_modules/.bin/detox: fork: Resource temporarily unavailable

I appreciate this might be something local to my machine, but is there any reason why this general approach wouldn't work?

Most helpful comment

detox-cli is a convenience module, it should be installed globally to be available for as a binary in your command line.
yarn global add detox-cli

It wraps the binaries under detox/local-cli and just executes them.

You can either install it globally and get the benefit of calling detox from command line:
detox test

or don't use it at all and call the detox from your node modules:
./node_mmodules/.bin/detox test

All 2 comments

detox-cli is a convenience module, it should be installed globally to be available for as a binary in your command line.
yarn global add detox-cli

It wraps the binaries under detox/local-cli and just executes them.

You can either install it globally and get the benefit of calling detox from command line:
detox test

or don't use it at all and call the detox from your node modules:
./node_mmodules/.bin/detox test

Gotcha, thanks.

Was this page helpful?
0 / 5 - 0 ratings