I'm getting the following error
Error: Cannot find module '/Users/kavishka/Documents/odata-openapi/tools/node_modules/java/build/Release/nodejavabridge_bindings.node'
Require stack:
- /Users/kavishka/Documents/odata-openapi/tools/node_modules/java/lib/nodeJavaBridge.js
- /Users/kavishka/Documents/odata-openapi/tools/node_modules/java/index.js
- /Users/kavishka/Documents/odata-openapi/tools/node_modules/xslt4node/lib/xslt4node.js
- /Users/kavishka/Documents/odata-openapi/tools/node_modules/xslt4node/index.js
- /Users/kavishka/Documents/odata-openapi/tools/transform.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:15)
at Function.Module._load (internal/modules/cjs/loader.js:526:27)
at Module.require (internal/modules/cjs/loader.js:666:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/Users/kavishka/Documents/odata-openapi/tools/node_modules/java/lib/nodeJavaBridge.js:21:16)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Module.require (internal/modules/cjs/loader.js:666:19)
I'm trying out https://github.com/oasis-tcs/odata-openapi/tree/master/tools
and when I run odata-openapi -dp ../examples/Northwind.xml I get the following error
In order to solve this issue I did the following, - Uninstalled node - Used yarn to install node
This solved all node related issues.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.