2012-01-17 142 views
0

使用與王菲v.7.1我收到錯誤意外標記<

/path/livestats/node_modules/faye0.7/faye.js:18 
    ID_LENGTH:  <%= Faye::ID_LENGTH %>, 
        ^
----------------------- 
Exception: SyntaxError: Unexpected token < 
SyntaxError: Unexpected token < 
    at Module._compile (module.js:427:25) 
    at Object..js (module.js:450:10) 
    at Module.load (module.js:351:31) 
    at Function._load (module.js:310:12) 
    at Module.require (module.js:357:17) 
    at require (module.js:368:17) 
    at Object.<anonymous> (/path/livestats/lib/livestats.js:4:12) 
    at Module._compile (module.js:432:26) 
    at Object..js (module.js:450:10) 
    at Module.load (module.js:351:31) 
----------------------- 

我想實現例如peepcode相約顯示的NodeJS v.6.7 Node.js的視頻。

回答

0

好像你需要faye.js之前建設faye_node之前。

您需要按照instructions on faye repository或通過npm安裝它:

npm install faye -d 

如果通過NPM安裝它,你可以require("faye-node")

+0

要求( '王菲/王菲節點') – coure2011 2012-01-17 10:35:19