![](/img/trans.png)
[英]Node.js - throw new Error(“Cannot find module '” + request + “'”);
[英]I'm getting following error while using node.js with socketstream.“throw new Error(”Cannot find module '“ + x + ”'“)”
我正在將node.js與socketstream一起使用..在運行我的計算機時出現以下錯誤
“ appln。找不到模塊'/ entry'[此錯誤中斷]
拋出新錯誤(“找不到模塊'” + x +“'”)
NewNodeProject
client
-code
-app
-libs
-css
-libs
static
templates
views
-app.html
node_modules
-express
-socketstream
server
-rpc
-user.js
-app.js
這里的解決方案是使用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)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.