node -v
v4.4.7
npm -v
v2.15.8
node-gyp -v
v3.4.0
I'm trying to run my node app which uses libxmljs
module and i'm getting this wierd error:
libxmljs/node_modules/bindings/bindings.js:83
throw e
^
Error: /link/node_modules/libxmljs/build/Release/xmljs.node: undefined symbol: _ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl
at Error (native)
at Object.Module._extensions..node (module.js:434:18)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at bindings (/link/node_modules/libxmljs/node_modules/bindings/bindings.js:76:44)
at Object.<anonymous> (/link/node_modules/libxmljs/lib/bindings.js:1:99)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
I tried to npm update
and installing libxmljs
again. Doesn't work.
Any tips?
node_modules
first, just to be sure) with your current Node version? – Grippingnpm i libxmljs
? – Grippinginstall
– Grippingsudo node-gyp rebuild
, which shouldn't be necessary if you re-install the package. I just installed the package myself (same Node version), that worked fine for me. – Grippinglibxmljs
declared as a (regular) dependency? – Grippingdependencies
object of thepackage.json
that belongs to your module. – Grippingnpm install --save
, just need to remove (or rename) node_modules directory and then executenpm install
to rebuild it. If you installed any modules without the '--save' option, then you should reinstall it by hand (better with '--save' this time). – Inkling