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

Debian renamed node for some reason #70

Closed
kkoopa opened this issue Feb 5, 2014 · 5 comments
Closed

Debian renamed node for some reason #70

kkoopa opened this issue Feb 5, 2014 · 5 comments

Comments

@kkoopa
Copy link
Collaborator

kkoopa commented Feb 5, 2014

Apparently Debian decided it was a good idea to rename node to nodejs. This causes problems with the current include-voodoo.

"include_dirs" : [
    "<!(node -e \"require('nan')\")"
]

serialport/node-serialport#301

Based on crypto-utils/keygrip#7, it seems a possible fix is something like

"[ -x /usr/bin/nodejs ] && /usr/bin/nodejs ./install.js || node ./install.js"

But, I suspect that will not work with Windows. So, how to make a cross-platform solution?

@bnoordhuis
Copy link
Member

You're late, Debian did that like three or four years ago. :-)

It's probably not an issue in practice. Most people that don't compile from source seem to install the nodejs-legacy package that symlinks /usr/bin/node to /usr/bin/nodejs.

@kkoopa
Copy link
Collaborator Author

kkoopa commented Feb 5, 2014

Oh my, well, good it's a non-issue.

@rvagg
Copy link
Member

rvagg commented Feb 5, 2014

always best to recommend people use Chris Lea's PPA cause it's always up to date and does a symlink by default.

@rvagg
Copy link
Member

rvagg commented Feb 5, 2014

on Debain is a bit more involved because of the lack of a nice PPA ecosystem, but do people really still use Debian raw?

@bnoordhuis
Copy link
Member

I do (but I compile node.js from source, of course. :-)). It's possible to use PPAs on Debian with minimal effort, by the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants