2012-09-10 143 views
0

我正在試驗towerjs。我只是按照說明來創建一個項目。Towerjs語言環境錯誤

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

當我嘗試啓動這個項目我碰到下面的錯誤服務器:

[email protected]:~/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 

任何幫助,將不勝感激。

感謝

UPDATE:

通過進一步調查

_path = require('path')  
_path.sep 

彷彿回到undefined。爲什麼它不會返回/

回答

0

嘿所以問題是我不得不更新節點到最新版本(v0.8.8)。我的錯。

+0

這是一個錯誤,請將它發佈在這裏:https://github.com/viatropos/tower/issues(儘管我會這樣做)。感謝發佈! –

1

在進入您的新應用程序並使用「npm install」安裝所有節點模塊後,運行「cake watch」。這將創建塔需要的文件和模板。許多文檔和說明都過時了,但我很確定這是塔的下一個主要項目:讓這些更新。