【发布时间】:2017-04-30 16:08:14
【问题描述】:
我正在尝试在 ubuntu 12.04 上安装咖啡脚本。我收到此错误。我也尝试使用 npm (ver. 1.1.4) install 命令,但它也失败了。
$ 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)
在 Object.exports.run (/home/gerceka/coffeescript/lib/coffee-script/cake.js:51:19)
在对象。 (/home/gerceka/coffeescript/bin/cake:7:38)
在 Module._compile (module.js:441:26)
在 Object.Module._extensions..js (module.js:459:10)
在 Module.load (module.js:348:32)
在 Function.Module._load (module.js:308:12)
在 Array.Module.runMain [as 0] (module.js:479:10)
在 EventEmitter.startup.processNextTick.process._tickCallback (node.js:192:41)
我想我需要这个来安装 genieacs。谢谢。
【问题讨论】:
-
sudo npm install -g coffee-script您可以交替使用git clone存储库并手动调整.bashrc中的$PATH以包含该目录。那些版本的一切都很旧:ubuntu 当前的 LTS 是 16.04,npm 现在是 3.10,等等。我猜你有一个版本不兼容。 -
@JaredSmith 让我们把功劳归于功劳。请提供您的建议作为答案,以便 Gerçek AKÇA 接受。
标签: node.js coffeescript ubuntu-12.04