For example, I get an error in CoffeeScript's parser.js:
if (typeof process !== 'undefined') {
var source = require('fs').readFileSync(require('path').join(process.cwd(), args[1]), "utf8");
} else {
var cwd = require("file").path(require("file").cwd());
var source = cwd.join(args[1]).read({charset: "utf-8"});
}
It tries to find a 'file' module even though it is running Node.js and should use only the moduled required in the if clause:
Fatal error: /Users/matthewgertner/.../node_modules/grunt/node_modules/coffee-script/lib/coffee-script/parser.js: Cannot call method 'push' of undefined
For example, I get an error in CoffeeScript's parser.js:
It tries to find a 'file' module even though it is running Node.js and should use only the moduled required in the
if
clause: