2011-12-23 18 views
0

私はの.jsファイルに.coffeeファイルをコンパイルしようとしていますが、私はいただきました!間違っ見当がつかないが、事前Coffeescript Parseエラーが予期しない '。'

C:\Documents and Settings\USER\Desktop\Bots\b>coffee 
coffee> --bare -l --compile *.coffee 
Error: In repl, Parse error on line 1: Unexpected '.' 
at Object.parseError (C:\Documents and Settings\USER\Application Data\npm\no 
de_modules\coffee-script\lib\coffee-script\parser.js:470:11) 
at Object.parse (C:\Documents and Settings\USER\Application Data\npm\node_mo 
dules\coffee-script\lib\coffee-script\parser.js:546:22) 
at C:\Documents and Settings\USER\Application Data\npm\node_modules\coffee-s 
cript\lib\coffee-script\coffee-script.js:40:22 
at Object.eval (C:\Documents and Settings\USER\Application Data\npm\node_mod 
ules\coffee-script\lib\coffee-script\coffee-script.js:123:10) 
at Interface. (C:\Documents and Settings\USER\Application Data\np 
m\node_modules\coffee-script\lib\coffee-script\repl.js:51:34) 
at Interface.emit (events.js:67:17) 
at Interface._onLine (readline.js:162:10) 
at Interface._line (readline.js:426:8) 
at Interface._ttyWrite (readline.js:603:14) 
at ReadStream. (readline.js:82:12) 
coffee> 

答えて

3

でのおかげで、私が特にCoffeScriptを知らないが、それはように見えるこのエラーを取得しておきます私はあなたが対話的なシェルでコマンドラインオプションを提供しようとしています。パラメータとしてオプションを与えるようにしてください:

C:\ DocumentsとSettings \デスクトップ\ USER \ボット\ B>コーヒー--bare -l --compile * .coffee

+0

正確に正しいです。 'coffee'を単独で実行するときは、REPLに入ります.REPLは、シェルコマンドではなく、CoffeeScript式を入力すると予想されます。 Ctrl + Cを押してREPLを終了します。 –

関連する問題