0

我正在尝试使用 towerjs。我只是按照说明创建一个项目。

npm install tower -g
npm install grunt -g
mongod
tower new app
cd app
npm install

当我尝试为项目启动服务器时,出现以下错误:

GT@ubuntu:~/work/app$ node server.js 

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
Error: ENOENT, no such file or directory '/home/GT/work/app/config/localesundefineden.coffee'
    at Object.statSync (fs.js:422:18)
    at Function.stat (/home/GT/work/app/node_modules/pathfinder/lib/pathfinder/file.js:21:17)
    at Function.isDirectory (/home/GT/work/app/node_modules/pathfinder/lib/pathfinder/file.js:165:19)
    at Function.isFile (/home/GT/work/app/node_modules/pathfinder/lib/pathfinder/file.js:169:20)
    at Function.files (/home/GT/work/app/node_modules/pathfinder/lib/pathfinder/file.js:137:18)
    at [object Object].<anonymous> (/home/GT/work/app/node_modules/tower/packages/tower-application/server/application.coffee:157:22)
    at /home/GT/work/app/node_modules/tower/packages/tower-support/shared/callbacks.coffee:141:28
    at /home/GT/work/app/node_modules/tower/packages/tower-support/shared/shared.coffee:307:22
    at SupportCallback.run (/home/GT/work/app/node_modules/tower/packages/tower-support/shared/callbacks.coffee:204:18)
    at /home/GT/work/app/node_modules/tower/packages/tower-support/shared/callbacks.coffee:110:25

任何帮助,将不胜感激。

谢谢

更新:

随着进一步调查

_path = require('path')    
_path.sep

似乎回来了undefined。为什么不返回/

4

2 回答 2

1

在进入新应用程序并使用“npm install”安装所有节点模块后,运行“cake watch”。这将创建所需的文件和模板。许多文档和说明都已过时,但我很确定这是 tower 的下一个主要项目:更新这些。

于 2012-09-11T03:12:44.613 回答
0

嘿,问题是我必须将节点更新到最新版本(v0.8.8)。我的错。

于 2012-09-11T05:23:48.370 回答