2013-01-03 28 views
0

我使用node.js和socketstream ..我是收到以下錯誤,同時運行我的我在使用nodestream.js和socketstream時出現以下錯誤。「拋出新的錯誤(」找不到模塊「+ x +」'「)」

「appln.Cannot找到模塊‘/項目’ [打破這個錯誤]

拋出新的錯誤(」無法找到模塊「」 + X +「'」)

  NewNodeProject 
client 
    -code 
     -app 
     -libs 
    -css 
     -libs 
static 
templates 
views 
    -app.html 
node_modules 
    -express 
    -socketstream 
server 
    -rpc 
     -user.js 
    -app.js 
+0

嗨Maaaaani,你使用生成項目「socketstream新<項目>」?它看起來像你在/client/code/app/entry.js缺少一個entry.js文件 – paulbjensen

+0

@paulbjensen:不,我沒有使用'socketstream new '生成項目,好吧,我會嘗試。 – MAAAAANI

+0

@paulbjensen:thanks.now我的申請工作正常.. – MAAAAANI

回答

0

這裏的解決方案是使用SocketStream的生成器生成應用程序文件夾和文件,以便沒有文件/文件夾意外錯過了:

socketstream new <project_name> 

您可以通過以下標誌與此命令:

-c (use CoffeeScript versions of the application's files) 
-m (generate the application without the demo code files) 
-j (use jade's templating system for the view & template files) 
+0

好的謝謝.......... – MAAAAANI