2
編輯:我增加了關於如何解決這一問題,以防有人與它鬥爭的答案。和的NodeJS CoffeeScript的安裝(Ubuntu的12.04)
我已經升級,從Ubuntu的11我的筆記本電腦,以12.04和出於某種原因,CoffeeScript的編譯器停止工作。我用它來進行Web開發,但我仍然是一個在linux環境中工作的新手。
基本上當我嘗試運行cake.coffeescript我得到如下:
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
所以它的工作原理感,但每當我試圖運行cake.coffeescript建立它引發我一個錯誤:
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.<anonymous> (module.js:381:11)
at Object.<anonymous> (/home/ignas/bin/[email protected]: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.<anonymous> (module.js:381:11)
at Object.<anonymous> (/home/ignas/bin/[email protected]: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)
我想這是造成的NodeJS。我試圖谷歌解決方案,但沒有任何幫助。我認爲這個問題是我已經列入到〜/ .bashrc文件的頂部NODE_PATH變量(我跟着this教程安裝一切)。任何幫助都會得到真正的讚賞,因爲我即將完成項目的一部分並需要交付,但不能編譯coffeescript文件。
感謝
或接聽並接受你的答案,以防有人進入同樣的麻煩。 – mreq