Skip to content

Debian renamed node for some reason #70

Description

@kkoopa

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?

Activity

  1. bnoordhuis commented on Feb 5, 2014

    @bnoordhuis
    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.

  2. kkoopa commented on Feb 5, 2014

    @kkoopa
    CollaboratorAuthor

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

  3. rvagg commented on Feb 5, 2014

    @rvagg
    Member

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

  4. rvagg commented on Feb 5, 2014

    @rvagg
    Member

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

  5. bnoordhuis commented on Feb 6, 2014

    @bnoordhuis
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions