I am trying to install coffee-script on ubuntu 12.04. I am getting this error. I tried with npm (ver. 1.1.4) install command too, but it also failed.
$ sudo coffeescript/bin/cake install
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
TypeError: Object # has no method 'existsSync' at cakefileDirectory (/home/gerceka/coffeescript/lib/coffee-script/cake.js:104:12)
at Object.exports.run (/home/gerceka/coffeescript/lib/coffee-script/cake.js:51:19)
at Object. (/home/gerceka/coffeescript/bin/cake:7:38)
at Module._compile (module.js:441:26)
at Object.Module._extensions..js (module.js:459:10)
at Module.load (module.js:348:32)
at Function.Module._load (module.js:308:12)
at Array.Module.runMain [as 0] (module.js:479:10)
at EventEmitter.startup.processNextTick.process._tickCallback (node.js:192:41)
I think I need this for genieacs installation. Thanks.
sudo npm install -g coffee-scriptyou could alternatelygit clonethe repo and manually adjust the$PATHin your.bashrcto include the directory. Those versions of everything are all quite old: ubuntu current LTS is 16.04, npm is now on 3.10, etc. I'd guess that you have a version incompatibility. - Jared Smith