Jest: ./setup.sh: No such file or directory

Created on 31 Mar 2016  Â·  5Comments  Â·  Source: facebook/jest

npm i --save-dev jest-cli
|
> [email protected] postinstall /Users/gre/myproject/node_modules/jest-cli
> node postinstall.js

{ [Error: Command failed: /bin/sh -c ./setup.sh
/bin/sh: ./setup.sh: No such file or directory
]
  killed: false,
  code: 127,
  signal: null,
  cmd: '/bin/sh -c ./setup.sh' }

Mac OSX
node v4.4.0
npm 2.14.20

Most helpful comment

for some reason, the setup.sh is not published on npm ? (v 0.10.0)

All 5 comments

for some reason, the setup.sh is not published on npm ? (v 0.10.0)

setup.sh shouldn't be run when installing 0.10.0. I don't understand why it is trying to be run – cc @kentaromiura didn't you make it so it won't be run!? Can we at least make it so that it just silently fails if setup.sh is not part of the copy of Jest? That should fix this too.

We'll fix this but in the meantime you can ignore the error. This is only for development and if npm install gets this far, Jest should be properly be installed :)

I have same problem.

Also seeing this and it's breaking my tests.

screen shot 2016-04-05 at 11 06 20 am

This message will be removed from the next release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gustavjf picture gustavjf  Â·  3Comments

StephanBijzitter picture StephanBijzitter  Â·  3Comments

paularmstrong picture paularmstrong  Â·  3Comments

ticky picture ticky  Â·  3Comments

Secretmapper picture Secretmapper  Â·  3Comments