ReferenceError: fs is not defined #186

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

Comments

Projects
None yet
7 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

This comment has been minimized.

Show comment
Hide comment
@thekua

thekua Jan 5, 2013

I just hit this problem too. +1

thekua commented Jan 5, 2013

I just hit this problem too. +1

@manuwell

This comment has been minimized.

Show comment
Hide comment
@manuwell

manuwell Jan 17, 2013

Having the same problem

Having the same problem

@tnatarajan

This comment has been minimized.

Show comment
Hide comment
@tnatarajan

tnatarajan Jan 17, 2013

If you install older version , you can skip this problem

npm install jasmine-node@1.0.26

If you install older version , you can skip this problem

npm install jasmine-node@1.0.26

@manuwell

This comment has been minimized.

Show comment
Hide comment
@manuwell

manuwell Jan 17, 2013

@tnatarajan now is alright!
thks man!

@tnatarajan now is alright!
thks man!

@zhjuncai

This comment has been minimized.

Show comment
Hide comment
@zhjuncai

zhjuncai Jan 23, 2013

same here

nobody maintain the code now?

same here

nobody maintain the code now?

@tebriel

This comment has been minimized.

Show comment
Hide comment
@tebriel

tebriel Jan 31, 2013

Contributor

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

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@JAForbes

JAForbes May 13, 2014

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

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

@smallWanziOf

This comment has been minimized.

Show comment
Hide comment
@smallWanziOf

smallWanziOf Mar 29, 2017

me too . when use 'less-vars-to-js' who know this ? thanks!!!

me too . when use 'less-vars-to-js' who know this ? thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment