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

Error: Cannot find module '../support/qunit/qunit/qunit.js' #79

Closed
mcandre opened this issue May 3, 2013 · 1 comment
Closed

Error: Cannot find module '../support/qunit/qunit/qunit.js' #79

mcandre opened this issue May 3, 2013 · 1 comment

Comments

@mcandre
Copy link

mcandre commented May 3, 2013

When I run npm test, it crashes due to a missing file.

Trace:

$ npm test

> qunit@0.5.16 test c:\Documents and Settings\apenneba\Desktop\src\node-qunit
> make test

node ./test/testrunner.js

Testing c:\Documents and Settings\apenneba\Desktop\src\node-qunit\test\fixtures\testrunner-code.js ...
module.js:340
    throw err;
          ^
Error: Cannot find module '../support/qunit/qunit/qunit.js'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (c:\Documents and Settings\apenneba\Desktop\src\node-qunit\lib\child.js:1:75)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)

I examined lib/child.js and saw:

var QUnit = require('../support/qunit/qunit/qunit.js'),

I looked for this file in the project, doesn't appear to exist.

$ ls support/qunit/qunit/qunit.js
ls: support/qunit/qunit/qunit.js: No such file or directory
@mcandre
Copy link
Author

mcandre commented May 3, 2013

Apologies for my ignorance. I'm supposed to git submodules init && git submodules update from the top level directory, per the git docs. Works for me!

@mcandre mcandre closed this as completed May 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant