javascript - Invalid ELF header Node js with couchbase db -


i've seen handful of posts issue results seem specific users configuration. i'm using couchbase db express js server. when run code locally (windows) works fine. database self hosted on linux server. when deploy code our testing environment ( linux ), i'm getting error when try run "node server.js":

/var/www/html/btrnode/node_modules/couchbase/node_modules/bindings/bindings.js:83         throw 8 error: /var/www/html/btrnode/node_modules/couchbase/build/release/couchbase_impl.node: invalid elf header     @ module.load (module.js:356:32)     @ function.module._load (module.js:312:12)     @ module.require (module.js:364:17)     @ require (module.js:364:17)     @ .... 

i'm lost on in situation. mentioned before, seemed me fixes in other peoples situation system configuration. i'm not sure post here see configuration might help, can sure add if needed. if there more general solution or error i'm committing that'd helpful know to.

question: need run?

the "invalid elf header" error happens when compile modules on 1 architecture , try run them on another. i'm guessing you're copying entire project folder over, rather installing architecture-specific node modules on testing environment. make sure package.json file configured correctly, delete (or better yet, don't copy) node_modules folder, , run npm install on target environment. pull , compile modules particular environment.

here documentation page configuring , using package.json: https://docs.npmjs.com/getting-started/using-a-package.json


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -