Skip to content

The binary and long term compatibility with node #43

Closed

Description

@jondavidjohn

There has been a bit of discussion in #28 about what to name the binary. This probably deserves it's own discussion.

The proposed approach

Is the plan to have the installer install an iojs binary and an alias to node?

presents some additional questions:

  • how do node / iojs live side by side?
  • is it a goal of iojs to be long-term compatible with node?

Activity

  1. greduan commented on Dec 4, 2014

    @greduan

    👍 For iojs.

  2. juliangruber commented on Dec 7, 2014

    @juliangruber
    Member

    people that really care will alias io='iojs' anyways

  3. greduan commented on Dec 7, 2014

    @greduan

    io has a higher probability of conflicting with other commands though

  4. snostorm commented on Dec 10, 2014

    @snostorm

    Noting the discussion here (re: the project's default command line name) may relate to the outcome of #118

  5. bnoordhuis commented on Dec 10, 2014

    @bnoordhuis
    Member

    Per today's TC meeting, the plan is to rename to binary to iojs and ln -s iojs node on install if a node binary doesn't already exist. How to make the symlink work on Windows is up for discussion, see #140.

  6. kenperkins commented on Dec 10, 2014

    @kenperkins
    Contributor

    @bnoordhuis so that means that if node is already present, we won't do anything (wrt to the symlink, or removing node)?

    I'm not sure I like the idea that depending on the state of the system, invoking node may or may not result in the iojs binary being executed.

    I wonder if we'd be better off being more explicit in our behavior; a couple of options:

    1. Always fail to install if node is already present (i.e. conflict)
    2. Stomp on the node install and replace it with iojs (like mariadb)

    Thoughts?

  7. kkoopa commented on Dec 11, 2014

    @kkoopa

    NAN requires executing 'node' to find the location of the header. Windows compatibility is the main source of problems when it comes to using multiple alternative names. nodejs/nan#70

  8. bnoordhuis commented on Dec 11, 2014

    @bnoordhuis
    Member

    @kenperkins After thinking about it some more, I fear that stomping on an existing install is probably the only workable approach. I didn't realize how much stuff the installer installs into $prefix/include and $prefix/lib and I don't think it's possible to detect whether that's from a joyent/node or iojs install.

  9. kenperkins commented on Jan 8, 2015

    @kenperkins
    Contributor

    Considering #249 and #42 where does this issue sit? Seems like in #249 a decision has been made, so I think that should be reflected here and maybe close this one?

  10. DomT4 commented on Jan 8, 2015

    @DomT4

    Having iojs alias back to node with both binaries being available to call in the $PATH, It's going to make packaging iojs alongside node hell. Completely understand and appreciate why it needs to be done, but I wiggle uncomfortably on the potential for iojs and node to just play the "let's override each other's links" game if they're installed side-by-side.

  11. snostorm commented on Jan 8, 2015

    @snostorm

    Maybe it would be good to semi-officially support/recommend version manages (nvm, n) as part of our website/README. Especially if we can get those projects to support iojs sooner than later. (Or fork our own.)

    It could help people maintain both versions and have a clearer sense of which they are on.

  12. fixe commented on Jan 8, 2015

    @fixe
    Contributor

    +1 for creating our own version manager.

  13. rvagg commented on Jan 8, 2015

    @rvagg
    Member

    I'm pretty sure that's unnecessary, we have version manager authors/maintainers involved here and looking to make them work with io.js: nodejs/build#22

  14. DavidSouther commented on Jan 9, 2015

    @DavidSouther

    Don't fork the version manager; as @rvagg mentions there's plenty of interest and desire for the current package managers to stay current with trends in all the forks.

  15. ljharb commented on Jan 9, 2015

    @ljharb
    SponsorMember

    As long as io.js supports the same things as node.js - namely, curl-able binaries + source, easy-to-consume-from-POSIX version URLs, and path-related environment variables, http://nvm.sh will definitely support io.js.

    What the project decides to do with the binary doesn't matter to me wrt nvm, as long as it either stays backwards-compatible, or provides notice for breaking changes so nvm can be updated.

  16. added a commit that references this issue on Aug 6, 2019
  17. added a commit that references this issue on Aug 20, 2019
  18. added a commit that references this issue on Sep 3, 2019
  19. added a commit that references this issue on Oct 19, 2019
  20. Anonimpgk commented on Apr 21, 2021

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