安装与CoffeeScript的node.js中试图安装使用的CoffeeScript node.js的类似this:无法在Ubuntu 12.04
sudo sudo apt-get install nodejs npm
sudo npm install -g coffee-script
但是:
coffee -v
返回我:
Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead.
at Function.Object.defineProperty.get (module.js:388:11)
at Object.<anonymous> (/home/lapsa/bin/[email protected]:4:21)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:903:3
我现在完全迷失了。任何帮助?
尝试3210没有成功。
$ npm -v
1.2.15
$ node -v
v0.11.0-pre
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise
这可能有助于http://stackoverflow.com/questions/11163447/error-require-paths-is-removed-use-node-modules-folders-or-the-node-path-envi – 2013-03-21 14:22:42
@HectorCorrea它didn “T。可能是我没有删除所有旧的东西,不确定这一点。 – 2013-03-21 14:29:54
在节点奇数版本号正在开发中,并有新的api。尝试稳定的0.10.x节点版本。 – user568109 2013-03-21 15:04:40