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

Mocha 2.5.0 runs with error #2272

Closed
carlnordenfelt opened this issue May 23, 2016 · 3 comments
Closed

Mocha 2.5.0 runs with error #2272

carlnordenfelt opened this issue May 23, 2016 · 3 comments

Comments

@carlnordenfelt
Copy link

carlnordenfelt commented May 23, 2016

I just ran our tests where we have mocha: * in package.json and got this error:

module.js:327
    throw err;
    ^

Error: Cannot find module 'to-iso-string'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/Users/nordenfelt/Documents/dev/jayway/tobii/tobii-fire-cloud/services/apiAuthorizer/node_modules/mocha/lib/utils.js:15:19)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Object.Module._extensions.(anonymous function) [as .js] (/Users/nordenfelt/Documents/dev/jayway/tobii/tobii-fire-cloud/services/apiAuthorizer/node_modules/istanbul/lib/hook.js:109:37)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)

I reverted back to version 2.4.5 in package.json and the tests worked.

@gabrieledarrigo
Copy link

gabrieledarrigo commented May 23, 2016

Same for me, but I solved installing to-iso-string as my project dependecy.
It is a devDependecies of mocha, but somehow is not installed during npm install process:

├─┬ mocha@2.5.0 
│ ├── commander@2.3.0 
│ ├── diff@1.4.0 
│ ├── escape-string-regexp@1.0.2 
│ ├─┬ glob@3.2.11 
│ │ └─┬ minimatch@0.3.0 
│ │   ├── lru-cache@2.7.3 
│ │   └── sigmund@1.0.1 
│ ├── growl@1.9.2 
│ ├─┬ jade@0.26.3 
│ │ ├── commander@0.6.1 
│ │ └── mkdirp@0.3.0 
│ └── supports-color@1.2.0 
├── moment@2.13.0 

I'm reverting to 2.4.5 too

@deyhle
Copy link

deyhle commented May 23, 2016

Same here.
It should probably be in "dependencies" in the package.json, not in "devDependencies"?

@boneskull
Copy link
Contributor

fixing... thanks, sorry

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

Successfully merging a pull request may close this issue.

4 participants