Coder Social home page Coder Social logo

Support arch parameter. about node-bin-gen HOT 2 OPEN

dianlight avatar dianlight commented on August 15, 2024
Support arch parameter.

from node-bin-gen.

Comments (2)

aredridel avatar aredridel commented on August 15, 2024

You can install node-win-x86, though if you need it to also support other configurations then adding that as a dependency would be counterproductive.

Why installing with an x64 node to get an x86 binary? (Just curious what the use case is)

from node-bin-gen.

dianlight avatar dianlight commented on August 15, 2024

Install node-win-x86 on an 64bit environment give me the following error:

> npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"win32","arch":"x86"} (current: {"os":"win32","arch":"x64"})
> npm ERR! notsup Valid OS:    win32
> npm ERR! notsup Valid Arch:  x86
> npm ERR! notsup Actual OS:   win32
> npm ERR! notsup Actual Arch: x64

My uses case is quite complex to describe:
"A node application with native modules release as single binary."

  • The deveopers PC are mixed windows 32bit and 64bit
  • The central build machine is a windows 64bit with a shared installed node ( 64bit fixed version 8). Every project needed to install its enviroment ( node, modules etc ) before the build process.
  • The native modules ( C/C++ ) needed to be compiled with the exact version and arch as the final packed exe file.

For the moment I have some post install custom script that unpack and link the right node version in the project but is not the optimal solution.

Regrads
L.

from node-bin-gen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.