FAQ
Hi all,

I have 2 related questions:

1. Is there a way to put both 32-bit and 64-bit .node files under
node_modules so correct version is chosen based on which node is running. I
need both 32- and 64-bit node on the same system and would like to have
single local node_modules tree in my project instead of 2 mostly duplicate
trees.

2. Is there a way to help module maintainers to include precompiled
binaries in their npm packages? Are binaries still supported? I'd like to
start with ws and xxhash - they both don't have binaries included at least
for x64.

Zoid

--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group, send email to nodejs+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Ben Noordhuis at Jan 28, 2013 at 11:31 am

    On Mon, Jan 28, 2013 at 9:33 AM, Zoid wrote:
    Hi all,

    I have 2 related questions:

    1. Is there a way to put both 32-bit and 64-bit .node files under
    node_modules so correct version is chosen based on which node is running. I
    need both 32- and 64-bit node on the same system and would like to have
    single local node_modules tree in my project instead of 2 mostly duplicate
    trees.
    Something like this should work:

    var foo = require('build/Release/foo.' + process.arch + '.node');

    Compile your module twice (or thrice, if you want to support ARM) to
    out/Release/foo.ia32.node and out/Release/foo.x64.node.

    It's possible that node-gyp has support for this built in. Nathan?
    2. Is there a way to help module maintainers to include precompiled binaries
    in their npm packages? Are binaries still supported? I'd like to start with
    ws and xxhash - they both don't have binaries included at least for x64.

    Zoid
    You can ship .node files with a npm module and some modules do. See
    the bson module for an example.

    --
    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en

    ---
    You received this message because you are subscribed to the Google Groups "nodejs" group.
    To unsubscribe from this group, send email to nodejs+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • José F. Romaniello at Jan 28, 2013 at 12:34 pm
    I do this for my windows-eventlog module

    https://github.com/jfromaniello/windowseventlogjs

    It is packaged with the two nodes files. I wish I have a build script for
    this with node-gyp, haven't figure out yet, but shiping precompiled for
    windows is a must, since I usually don't want to install dev tools on
    servers.

    El lunes, 28 de enero de 2013, Ben Noordhuis escribió:
    On Mon, Jan 28, 2013 at 9:33 AM, Zoid wrote:
    Hi all,

    I have 2 related questions:

    1. Is there a way to put both 32-bit and 64-bit .node files under
    node_modules so correct version is chosen based on which node is
    running. I
    need both 32- and 64-bit node on the same system and would like to have
    single local node_modules tree in my project instead of 2 mostly duplicate
    trees.
    Something like this should work:

    var foo = require('build/Release/foo.' + process.arch + '.node');

    Compile your module twice (or thrice, if you want to support ARM) to
    out/Release/foo.ia32.node and out/Release/foo.x64.node.

    It's possible that node-gyp has support for this built in. Nathan?
    2. Is there a way to help module maintainers to include precompiled binaries
    in their npm packages? Are binaries still supported? I'd like to start with
    ws and xxhash - they both don't have binaries included at least for x64.

    Zoid
    You can ship .node files with a npm module and some modules do. See
    the bson module for an example.

    --
    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines:
    https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com<javascript:;>
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com <javascript:;>
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en

    ---
    You received this message because you are subscribed to the Google Groups
    "nodejs" group.
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com <javascript:;>.
    For more options, visit https://groups.google.com/groups/opt_out.

    --
    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en

    ---
    You received this message because you are subscribed to the Google Groups "nodejs" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Zoid at Jan 28, 2013 at 10:24 pm

    On Monday, January 28, 2013 1:31:23 PM UTC+2, Ben Noordhuis wrote:
    On Mon, Jan 28, 2013 at 9:33 AM, Zoid <andy.m...@gmail.com <javascript:>>
    wrote:

    Something like this should work:

    var foo = require('build/Release/foo.' + process.arch + '.node');

    Compile your module twice (or thrice, if you want to support ARM) to
    out/Release/foo.ia32.node and out/Release/foo.x64.node.
    It's a great advice, thank you.
    2. Is there a way to help module maintainers to include precompiled binaries
    in their npm packages? Are binaries still supported? I'd like to start with
    ws and xxhash - they both don't have binaries included at least for x64.
    You can ship .node files with a npm module and some modules do. See
    the bson module for an example.
    The question was not how to ship .node files, but how to cooperate with
    module maintainers. I don't want to take full responsibility to maintain
    module, but can give .node files to the maintainer to include. Does anybody
    already do this?

    Andy

    --
    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en

    ---
    You received this message because you are subscribed to the Google Groups "nodejs" group.
    To unsubscribe from this group, send email to nodejs+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Ben Noordhuis at Jan 28, 2013 at 10:43 pm

    On Mon, Jan 28, 2013 at 11:15 PM, Zoid wrote:
    On Monday, January 28, 2013 1:31:23 PM UTC+2, Ben Noordhuis wrote:
    On Mon, Jan 28, 2013 at 9:33 AM, Zoid wrote:

    2. Is there a way to help module maintainers to include precompiled
    binaries
    in their npm packages? Are binaries still supported? I'd like to start
    with
    ws and xxhash - they both don't have binaries included at least for x64.
    You can ship .node files with a npm module and some modules do. See
    the bson module for an example.

    The question was not how to ship .node files, but how to cooperate with
    module maintainers. I don't want to take full responsibility to maintain
    module, but can give .node files to the maintainer to include. Does anybody
    already do this?

    Andy
    Sorry, I thought you were asking if publishing .node files to npm is
    still supported.

    I don't know of anyone that goes around offering pre-compiled Windows
    binaries. You'd have to take it up with the individual maintainers
    and gauge their interest.

    What I do know is that Microsoft has at one point entertained the idea
    of setting up a Windows build farm for add-ons but nothing came of
    that. (Yet?)

    --
    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en

    ---
    You received this message because you are subscribed to the Google Groups "nodejs" group.
    To unsubscribe from this group, send email to nodejs+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Nathan Rajlich at Jan 28, 2013 at 10:49 pm
    You can check out my node-bindings (
    https://github.com/TooTallNate/node-bindings) module which was designed
    with this cross platform+arch bundling mentality in mind.

    I tried doing it for a while in node-ffi (precompiling releases for each
    platform and arch combo, like 10 total) and my conclusion is that it's a
    lot of extra work when you're potentially doing releases often. So I
    decided stop bundling precompiled binaries for node-ffi with the hopes that
    a better precompiled binary solution comes along someday.

    What I do know is that Microsoft has at one point entertained the idea
    of setting up a Windows build farm for add-ons but nothing came of
    that. (Yet?)

    Wow, that would be awesome. We should start bugging them about that again
    :)

    --
    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en

    ---
    You received this message because you are subscribed to the Google Groups "nodejs" group.
    To unsubscribe from this group, send email to nodejs+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupnodejs @
categoriesnodejs
postedJan 28, '13 at 11:20a
activeJan 28, '13 at 10:49p
posts6
users4
websitenodejs.org
irc#node.js

People

Translate

site design / logo © 2021 Grokbase