Closed svassr closed 11 years ago
I have installed jscodesniffer on ubuntu (made sure every required dependecies were installed) and I got this error at fisrt try on js file.
node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: Object # has no method 'existsSync' at /usr/local/lib/node_modules/npm/test/packages/jscodesniffer/jscs:44:23 at Object. (/usr/local/lib/node_modules/npm/test/packages/jscodesniffer/jscs:84:1) at Module._compile (module.js:441:26) at Object..js (module.js:459:10) at Module.load (module.js:348:31) at Function._load (module.js:308:12) at Array.0 (module.js:479:10) at EventEmitter._tickCallback (node.js:192:40)
existsSync is a method of fs nodejs standard module (http://nodejs.org/api/fs.html#fs_fs_existssync_path) Please, try to upgrade your node.js e.g. apt-get upgrade I'm running v0.8.18
I have installed jscodesniffer on ubuntu (made sure every required dependecies were installed) and I got this error at fisrt try on js file.
node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: Object #