Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
npm error: --watch is not supported without git/hg, please use --watchAll #282
Is this a bug report?
Can you also reproduce the problem with npm 4.x?
Steps to Reproduce
Determining test suites to run... --watch is not supported without git/hg, please use --watchAll npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! firstname.lastname@example.org test: `react-scripts-ts test --env=jsdom` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the email@example.com test script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
No error happen and tests are executed.
When running the command described above, the test script is having the mentioned error. This error happens only under a npm context. When running the script directly on terminal only the warning message is shown but still no test is executed.
$ ./node_modules/.bin/react-scripts-ts test --env=jsdom Determining test suites to run... --watch is not supported without git/hg, please use --watchAll
This same issue is not happening in base project react-scripts.
After struggling a bit why it is happening I've come across
Intrigued if this change has being done in react-scripts project, I've found the
So, I don't know if this change I'm pointing out must be the proper fix.
Please have a look when you have time. Thanks.
Hm - the CRA solution seems to be to pick up
in the generated project's
referenced this issue
Apr 9, 2018
The change mentioned above was pre-picked and released in 2.15.1 of