Skip to content

ReferenceError: fs is not defined #186

Closed
tnatarajan opened this Issue Dec 17, 2012 · 7 comments

6 participants

@tnatarajan

In the latest version of jasmine-node, we are getting ReferenceError: fs is not defined error in cli.js.

usr/local/lib/node_modules/jasmine-node/lib/jasmine-node/cli.js:89
var existsSync = fs.existsSync || path.existsSync;

This was introduced by the commit made on Dec 05, 2012.

Hope the following initialization should be included in the cli.js
var fs = require('fs');

@thekua
thekua commented Jan 5, 2013

I just hit this problem too. +1

@manuwell

Having the same problem

@tnatarajan

If you install older version , you can skip this problem

npm install jasmine-node@1.0.26

@manuwell

@tnatarajan now is alright!
thks man!

@zhjuncai

same here

nobody maintain the code now?

@tebriel
tebriel commented Jan 31, 2013

This is resolved in the latest copy of master. Looking to npm publish within the next week.

@tebriel tebriel closed this Jan 31, 2013
@JAForbes

I just ran into this issue on the npm build. I'l try master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.