Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Coverage fails with "Cannot find module" for .bin/c8 #151

Closed
trivikr opened this issue Oct 4, 2019 · 1 comment
Closed

Coverage fails with "Cannot find module" for .bin/c8 #151

trivikr opened this issue Oct 4, 2019 · 1 comment

Comments

@trivikr
Copy link
Member

trivikr commented Oct 4, 2019

  • Version: v13.0.0-pre
  • Platform: Ubuntu
  • Subsystem: quic

Command run: ./configure --coverage && make -j4 coverage

Output:

Makefile:296: recipe for target 'jstest' failed
make[2]: *** [jstest] Error 1
Makefile:335: recipe for target 'test-cov' failed
make[1]: *** [test-cov] Error 2
Makefile:245: recipe for target 'coverage-test' failed
make: [coverage-test] Error 2 (ignored)
make coverage-report-js
./node ./node_modules/.bin/c8 report --reporter=html --temp-directory=out/Release/.coverage --omit-relative=false --resolve=./lib --exclude="benchmark/" --exclude="deps/" --exclude="test/" --exclude="tools/" --wrapper-length=0
internal/modules/cjs/loader.js:782
    throw err;
    ^

Error: Cannot find module '/home/trivikr/workspace/quic/node_modules/.bin/c8'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:779:15)
    at Function.Module._load (internal/modules/cjs/loader.js:684:27)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1015:10)
    at internal/main/run_main_module.js:17:11 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
Makefile:273: recipe for target 'coverage-report-js' failed
make[1]: *** [coverage-report-js] Error 1
Makefile:245: recipe for target 'coverage-test' failed
make: *** [coverage-test] Error 2

Screenshot from 2019-10-04 00-44-30

@trivikr trivikr mentioned this issue Oct 4, 2019
@trivikr
Copy link
Member Author

trivikr commented Oct 5, 2019

This issue was fixed after I ran make distclean as discussed in nodejs/node#28675

make coverage is now successful

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant