我需要 require('node-expat'),但它会抛出错误。我不知道如何解决它。谢谢你的帮助。
Error: Could not locate the bindings file. Tried:
→ /Users/cfl/node_modules/node-expat/build/node_expat.node
→ /Users/cfl/node_modules/node-expat/build/Debug/node_expat.node
→ /Users/cfl/node_modules/node-expat/build/Release/node_expat.node
→ /Users/cfl/node_modules/node-expat/out/Debug/node_expat.node
→ /Users/cfl/node_modules/node-expat/Debug/node_expat.node
→ /Users/cfl/node_modules/node-expat/out/Release/node_expat.node
→ /Users/cfl/node_modules/node-expat/Release/node_expat.node
→ /Users/cfl/node_modules/node-expat/build/default/node_expat.node
→ /Users/cfl/node_modules/node-expat/compiled/7.5.0/darwin/x64/node_expat.node
at bindings (/Users/cfl/node_modules/bindings/bindings.js:88:9)
at Object.<anonymous> (/Users/cfl/node_modules/node-expat/lib/node-expat.js:4:32)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/cfl/Downloads/node-xml2json-master/lib/xml2json.js:1:75)