nclosure 与 nodejs 0.12 不兼容

nclosure is not compatible with nodejs 0.12

nclosure,NodeJs 服务器端 Google Closure Lib,与 nodejs 0.12 不兼容

与 nodejs 0.12 兼容

/node_modules/nclosure/lib/settingsloader.js:102
  if (!path || !require('path').existsSync(path)) return null;
                                ^
TypeError: undefined is not a function
    at nclosure.settingsLoader.readArgsFromJSONFile (/home/wj/work/transport/node_modules/nclosure/lib/settingsloader.js:102:33)
    at nclosure.settingsLoader.readSettingsObject (/node_modules/nclosure/lib/settingsloader.js:133:12)
    at nclosure.base.loadBaseScript_ (/node_modules/nclosure/lib/nclosurebase.js:199:53)
    at new nclosure.base (/node_modules/nclosure/lib/nclosurebase.js:69:10)
    at Object.<anonymous> (/node_modules/nclosure/lib/nclosurebase.js:350:24)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

nodejs 0.12 中不再存在 path 库?如何修复?

应该不是require('path'),而是require('fs'),因为existsSync函数在fsAPI。你可以 fork 这个库并修复它。