node.js - nclosure is not compatible with nodejs 0.12 -


the nclosure ,nodejs server-side google closure lib, not compatible nodejs 0.12

compatible nodejs 0.12

/node_modules/nclosure/lib/settingsloader.js:102   if (!path || !require('path').existssync(path)) return null;                                 ^ typeerror: undefined not function     @ nclosure.settingsloader.readargsfromjsonfile (/home/wj/work/transport/node_modules/nclosure/lib/settingsloader.js:102:33)     @ nclosure.settingsloader.readsettingsobject (/node_modules/nclosure/lib/settingsloader.js:133:12)     @ nclosure.base.loadbasescript_ (/node_modules/nclosure/lib/nclosurebase.js:199:53)     @ new nclosure.base (/node_modules/nclosure/lib/nclosurebase.js:69:10)     @ object.<anonymous> (/node_modules/nclosure/lib/nclosurebase.js:350:24)     @ module._compile (module.js:460:26)     @ object.module._extensions..js (module.js:478:10)     @ module.load (module.js:355:32)     @ function.module._load (module.js:310:12)     @ module.require (module.js:365:17) 

the path lib not exist in nodejs 0.12 more? how fix?

it should not require('path'), require('fs') , because existssync function in fs api. can fork library , fix it.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -