Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scripts/postinstall.sh not found #627

Closed
nyablo opened this issue Mar 18, 2018 · 5 comments
Closed

scripts/postinstall.sh not found #627

nyablo opened this issue Mar 18, 2018 · 5 comments

Comments

@nyablo
Copy link

nyablo commented Mar 18, 2018

Hi,
I'm getting following
(CI, Linux, [email protected])

...
error An unexpected error occurred: "/builds/xxx/xxx/xxx/mobile/node_modules/detox: Command failed.
  Exit code: 127
  Command: sh
  Arguments: -c scripts/postinstall.sh
  Directory: /builds/xxx/xxx/xxx/mobile/node_modules/detox
  Output:
  sh: scripts/postinstall.sh: not found".
...

Let me know if you need more details.
Thanks!

@rotemmiz
Copy link
Member

Where is this output from ?
Please be more descriptive in the first place, and follow the template.

@Stanok3694
Copy link

Hi. I had the same issue now, when I tried to install detox into my RN 0.50.3 project...

PS C:\Aigh\hb-aigh-main-fe> npm i detox --save-dev

[email protected] postinstall C:\Aigh\hb-aigh-main-fe\node_modules\detox
scripts/postinstall.sh

and after this I have got following error:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: scripts/postinstall.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.

What does it mean?

@rotemmiz
Copy link
Member

It means that Detox doesn't run on Windows currently.

@jhen0409
Copy link
Contributor

I got the same issue on Alpine Linux, we can use the following command to reproduce:

$ docker run node:8.11.1-alpine sh -c "npm install detox --verbose"

That doesn't support run script like script.sh, it should be fine if we use ./script.sh instead.

@LeoNatan
Copy link
Contributor

@jhen0409 Could you please open a new issue? Also, would appreciate a PR :-)

@wix wix locked and limited conversation to collaborators Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants