Error installing Tower.js

夙愿已清 提交于 2019-12-13 02:42:18

问题


Strugging to get tower.js installed on my snow leopard macbook. Here is the command and the error:

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:


Beginning with Node.js 0.8, what was path.existsSync() is now fs.existsSync() - the version of tower.js that you're using seems to be incompatible with the installed Node.js version.



来源:https://stackoverflow.com/questions/12996645/error-installing-tower-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!