0
當我執行這個命令,它是right--當我第一次運行我的CoffeeScript,我error--
coffee -v
它的輸出是right.`CoffeeScript版本1.6.1 但是當我鍵入
$ coffee
它得到了錯誤,日誌低於
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object #<Object> has no method 'split'
at Interface.setPrompt (readline.js:121:24)
at new REPLServer (repl.js:128:7)
at Object.start (repl.js:249:14)
at Object.start (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/repl.js:95:23)
at Object.run (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:76:32)
at Object.<anonymous> (/usr/local/lib/node_modules/coffee-script/bin/coffee:7:41)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)
我需要你的幫助
謝謝!你知道我怎樣才能使用命令咖啡作爲REPL? – bony
@yeepaykaka您需要安裝舊版本的CoffeeScript,或安裝更新版本的Node。 – loganfsmyth