安装Tower.js时出错

时间:2012-10-21 09:32:08

标签: javascript node.js towerjs

努力让我的雪豹macbook上安装了tower.is。这是命令和错误:

My-Macbook:tower john$ tower new app

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
TypeError: Object #<Object> has no method 'existsSync'
    at Object.<anonymous> (/usr/local/lib/node_modules/tower/index.js:6:21)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:31)
    at Function._load (module.js:308:12)
    at Module.require (module.js:354:17)
    at require (module.js:370:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/tower/bin/tower:15:3)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)

1 个答案:

答案 0 :(得分:1)

从Node.js 0.8开始,path.existsSync()现在是fs.existsSync() - 您正在使用的tower.js版本似乎与已安装的Node.js版本不兼容。