Can't run stryker
See original GitHub issueHi, I’ve been trying to run following the quickstart guide (vanilla NPM - mocha - mocha - clear-text), but I got this error:
[shinglyu@shinglyu-XPS-15-9550:~/workspace/mutation-testing-demo/stryker]
% npm run stryker
> @ stryker /home/shinglyu/workspace/mutation-testing-demo/stryker
> stryker -c strker.conf.js
/usr/bin/env: ‘node\r’: No such file or directory
npm ERR! Linux 4.4.0-36-generic
npm ERR! argv "/home/shinglyu/.nvm/versions/node/v6.3.0/bin/node" "/home/shinglyu/.nvm/versions/node/v6.3.0/bin/npm" "run" "stryker"
npm ERR! node v6.3.0
npm ERR! npm v3.10.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! @ stryker: `stryker -c strker.conf.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the @ stryker script 'stryker -c strker.conf.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! stryker -c strker.conf.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/shinglyu/workspace/mutation-testing-demo/stryker/npm-debug.log
My mocha
is OK:
[shinglyu@shinglyu-XPS-15-9550:~/workspace/mutation-testing-demo/stryker]
% ./node_modules/mocha/bin/mocha 127 ↵
Calculator
✓ substractPositive
✓ add
2 passing (6ms)
And I’m using nvm:
[shinglyu@shinglyu-XPS-15-9550:~/workspace/mutation-testing-demo/stryker]
% npm -v
3.10.3
[shinglyu@shinglyu-XPS-15-9550:~/workspace/mutation-testing-demo/stryker]
% node -v
v6.3.0
[shinglyu@shinglyu-XPS-15-9550:~/workspace/mutation-testing-demo/stryker]
% /usr/bin/env node -v
v6.3.0
This was how I installed stryker:
npm i --save-dev mocha@^2.3.3
npm i --save-dev mocha stryker stryker-api stryker-mocha-runner
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Troubleshooting | Stryker Mutator
Below you'll find an ever-growing list of issues that you might occur when running StrykerJS on your project for the first time.
Read more >Can't run stryker · Issue #149 - GitHub
Hi, I've been trying to run following the quickstart guide (vanilla NPM - mocha - mocha - clear-text), ... Can't run stryker #149....
Read more >Stryker does not detect any of the tests in angular application
im trying to do mutation testing for my application, however when i run my stryker mutator it does not take any of the...
Read more >stryker-mutator/stryker - Gitter
Hi! I have some lazy import in my Angular 11 application that makes Stryker run into MODULE_NOT_FOUND . When running regular ng test...
Read more >Introduction to Mutation Testing with Stryker - Medium
It does not check that our tests are actually able to detect faults in the ... stryker run'— This will generate mutants for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m about to board a long distance flight, I’ll reply later
Nico Jansen notifications@github.com 於 2016年9月10日 週六 22:28 寫道:
Error message is sufficiently clear after all:
closing this issue