Javascript 安装Tower.js时出错
努力让tower.js安装到我的雪豹macbook上。以下是命令和错误:Javascript 安装Tower.js时出错,javascript,node.js,towerjs,Javascript,Node.js,Towerjs,努力让tower.js安装到我的雪豹macbook上。以下是命令和错误: 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 Obje
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)
我的Macbook:tower john$tower新应用程序
node.js:201
抛出e;//process.nextTick错误,或第一次勾选时的“error”事件
^
TypeError:对象#没有方法“existsSync”
反对。(/usr/local/lib/node_modules/tower/index.js:6:21)
在模块处编译(Module.js:441:26)
at Object..js(module.js:459:10)
在Module.load(Module.js:348:31)
at功能。加载(module.js:308:12)
at Module.require(Module.js:354:17)
根据需要(模块js:370:17)
反对。(/usr/local/lib/node_modules/tower/bin/tower:15:3)
在模块处编译(Module.js:441:26)
at Object..js(module.js:459:10)
从Node.js 0.8开始,原来的path.existsSync()
现在是fs.existsSync()
-您使用的tower.js版本似乎与安装的Node.js版本不兼容。很好,我的节点已经过时了。分类。