node-libxml-xsd icon indicating copy to clipboard operation
node-libxml-xsd copied to clipboard

Not able to install

Open faizanvahevaria opened this issue 6 years ago • 2 comments

I am installing in my nodejs project using 'npm i libxml-xsd' command.

I am getting following errors... Please help me to resolve this error....

[email protected] install /home/vi109/Faizan-Vahevaria/StarUML/staruml-cefact/node_modules/libxmljs-mt node-gyp rebuild

make: Entering directory '/home/vi109/Faizan-Vahevaria/StarUML/staruml-cefact/node_modules/libxmljs-mt/build' CXX(target) Release/obj.target/xmljs/src/libxmljs.o ../src/libxmljs.cc: In function ‘void libxmljs::adjustMem(ssize_t)’: ../src/libxmljs.cc:69:17: error: ‘IsDead’ is not a member of ‘v8::V8’ if (v8::V8::IsDead()) ^~~~~~ xmljs.target.mk:167: recipe for target 'Release/obj.target/xmljs/src/libxmljs.o' failed make: *** [Release/obj.target/xmljs/src/libxmljs.o] Error 1 make: Leaving directory '/home/vi109/Faizan-Vahevaria/StarUML/staruml-cefact/node_modules/libxmljs-mt/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/vi109/.npm-global/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23) gyp ERR! stack at ChildProcess.emit (events.js:198:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) gyp ERR! System Linux 5.0.0-37-generic gyp ERR! command "/usr/bin/node" "/home/vi109/.npm-global/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/vi109/Faizan-Vahevaria/StarUML/staruml-cefact/node_modules/libxmljs-mt gyp ERR! node -v v10.17.0 gyp ERR! node-gyp -v v5.0.3 gyp ERR! not ok npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/vi109/.npm/_logs/2020-02-06T13_15_25_283Z-debug.log

faizanvahevaria avatar Feb 06 '20 13:02 faizanvahevaria

Same error here. I want to migrate from node v8.12 to v12.18 but this library don't build. Anyone can help?

ipratico avatar Jun 03 '20 15:06 ipratico

@faizanvahevaria FYI: I'm currently trying this library libxmljs2-xsd, which is presented as an "XSD validation for node.js 14.x using libxml via libxmljs2"

ipratico avatar Jan 12 '21 10:01 ipratico