Skip to content

Node cannot be run when installed from tar.gz. #3446

Description

@niedomnie

Node version 4.2.1 (or 0.10.36, 0.12) cannot be installed (unpacked) from tar.gz to work with zmq library (probably not only with that library).

Such command works fine:
$ node -r "express" -e "console.log('ok');"
But this does not:
$ node -r "zmq" -e "console.log('ok');"
/opt/app/lib/node_modules/zmq/node_modules/bindings/bindings.js:83
throw e
^
Error: Module did not self-register.
at Error (native)
at Object.Module._extensions..node (module.js:460:18)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at bindings (/opt/app/lib/node_modules/zmq/node_modules/bindings/bindings.js:76:44)
at Object. (/opt/app/lib/node_modules/zmq/lib/index.js:6:30)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)

$ which node
/bin/node
$ ls -la /bin/node
lrwxrwxrwx 1 root root 28 Oct 20 07:42 /bin/node -> /opt/node-v4.2.1-linux-x64/bin/node

$ node -v
v4.2.1
$ npm -v
2.14.7

But when I use yum install nodejs then everything works (/usr/bin/node is replaced).

So what to do to have installed node, fully featured ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidIssues and PRs that are invalid.questionIssues asking questions about Node.js.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions