Wouldn't it be possible to publish a npm package with binaries which is 
arch-specific ?
like if you're installing node-fibers, the compiled sourced for my machine 
would be published at node-fibers-linux-x86_64 or something like this. if 
the package doesn't exist for my architecture, then just build it.
I realise that this would mean a lot of "unusable out of the box" packages, 
but it seems that a lot of package managers do things like that. apt ?

On Tuesday, 16 April 2013 10:58:25 UTC+2, Richard Astbury wrote:
>
> I recently installed the 'phantomjs' module, and was surprised to see the 
> installation script downloaded the phantomjs binary for the appropriate 
> platform (i.e. it did this on linux and windows). This makes complete 
> sense, phantom is probably both time consuming and complicated to compile, 
> but it made the module installation quite slick.
>
> Could the same approach be used to install other native modules? 
>
> I know the node approach is to compile the source for native modules, but 
> on Windows this is painful (sometimes very painful).
>
> Perhaps the missing part of the equation is an automated build system for 
> native modules, which would provide the built binaries for certain 
> platforms. If you're on a compatible platform then NPM gets the binary from 
> there, otherwise you're back to building it on your own.
>
> Rich.
>

-- 
-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to