Node.js Nodejs和Coffeescript安装(Ubuntu 12.04)

Node.js Nodejs和Coffeescript安装(Ubuntu 12.04),node.js,ubuntu,coffeescript,Node.js,Ubuntu,Coffeescript,编辑:我已经添加了一个关于如何解决此问题的答案,以防有人遇到麻烦。 我已经将我的笔记本电脑从Ubuntu11升级到12.04,由于某种原因,coffeescript编译器停止工作。我使用它进行web开发,但我仍然是在linux环境中工作的新手 基本上,当我尝试运行cake.coffeescript时,我会得到以下结果: path.existsSync is deprecated. It is now called `fs.existsSync`. Cakefile defines the fol

编辑:我已经添加了一个关于如何解决此问题的答案,以防有人遇到麻烦。

我已经将我的笔记本电脑从Ubuntu11升级到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/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.<anonymous> (module.js:381:11)
    at Object.<anonymous> (/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)
path.existsSync不推荐使用。它现在被称为“fs.existsSync”。
执行coffee-o examples-j hallo.js-c`find src-type f-name'*.coffee'`
{[错误:命令失败:
node.js:249
抛出e;//process.nextTick error,或在第一次勾选时抛出“error”事件
^
错误:已删除require.PATH。请改用node_模块文件夹或node_PATH环境变量。
在Function.tutorial安装所有东西)。任何帮助都将不胜感激,因为我即将完成一个项目的一部分,需要交上来,但如果不编译coffeescript文件,就无法完成


谢谢你,现在所有的东西都整理好了。我不得不删除所有现存的文件夹以及ubuntu存储库中包含npm、coffee脚本和节点的所有东西,并从git安装所有东西。 逐步安装:

1. clone https://github.com/joyent/node.git
2. git checkout v0.6.17 //current stable at my time
3. cd node && ./configure && make && make install
4. curl http://npmjs.org/install.sh | sudo sh
5. download coffeescript from git and do sudo bin/cake install
6. sudo npm install coffee-script -g

这应该有效

或者回答并接受你的回答,以防有人遇到同样的麻烦。