Note that there are some explanatory texts on larger screens.

plurals
  1. PONodejs and Coffeescript install (Ubuntu 12.04)
    primarykey
    data
    text
    <p><strong>Edit: I have added an answer on how to fix this in case someone struggles with it.</strong></p> <p>I have upgraded my laptop from Ubuntu 11 to 12.04 and for some reason the coffeescript compiler stopped working. I use it for web development, but I'm still a newbie working in a linux environment.</p> <p>Basically when I try to run cake.coffeescript I get the following:</p> <pre><code>path.existsSync is deprecated. It is now called `fs.existsSync`. Cakefile defines the following tasks: cake doc # generate documentation for *.coffee files cake doc_copy # copy documentation to gh-pages branch cake build # generate unified JavaScript file for whole Hallo cake min # minify the generated JavaScript file cake bam # build and minify Hallo </code></pre> <p>So in a sense it works, but whenever I try running cake.coffeescript build it throws me an error:</p> <pre><code>path.existsSync is deprecated. It is now called `fs.existsSync`. Executing coffee -o examples -j hallo.js -c `find src -type f -name '*.coffee'` { [Error: Command failed: node.js:249 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead. at Function.&lt;anonymous&gt; (module.js:381:11) at Object.&lt;anonymous&gt; (/home/ignas/bin/coffee@1.3.1:4:21) at Module._compile (module.js:444:26) at Object..js (module.js:462:10) at Module.load (module.js:351:32) at Function._load (module.js:309:12) at module.js:482:10 at EventEmitter._tickCallback (node.js:238:11) ] killed: false, code: 1, signal: null } node.js:249 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead. at Function.&lt;anonymous&gt; (module.js:381:11) at Object.&lt;anonymous&gt; (/home/ignas/bin/coffee@1.3.1:4:21) at Module._compile (module.js:444:26) at Object..js (module.js:462:10) at Module.load (module.js:351:32) at Function._load (module.js:309:12) at module.js:482:10 at EventEmitter._tickCallback (node.js:238:11) </code></pre> <p>I guess this is caused by nodejs. I tried to google for a solution, but nothing helped. I think the issue is with the NODE_PATH variable which I have included to the top of ~/.bashrc file (I followed <a href="http://www.shaunambrose.com/2011/10/28/how-to-setup-node-js-npm-and-coffeescript-on-ubuntu/" rel="nofollow">this</a> tutorial to install everything). Any help would be really appreciated, because I'm about to finish a part of a project and need to hand it in, but can't do it without compiling the coffeescript files.</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload