Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
niedomnie opened this issue Oct 20, 2015 · 1 comment
Closed

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

niedomnie opened this issue Oct 20, 2015 · 1 comment
Labels
invalid Issues and PRs that are invalid. question Issues that look for answers.

Comments

@niedomnie
Copy link

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 ?

@bnoordhuis
Copy link
Member

You need to npm rebuild the zmq module after upgrading node. Closing, not a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Issues and PRs that are invalid. question Issues that look for answers.
Projects
None yet
Development

No branches or pull requests

2 participants