Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support arch parameter. #55

Open
dianlight opened this issue Dec 11, 2018 · 2 comments
Open

Support arch parameter. #55

dianlight opened this issue Dec 11, 2018 · 2 comments

Comments

@dianlight
Copy link

Hello,
I can't find a way to specify the architecture of the node to install. I'm on a 64bit windows machine and I need to specify to install the ia32 (x86) version of node.

For example would be nice:
npm install node@10.7.0-win-x86

L.

@aredridel
Copy link
Owner

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)

@dianlight
Copy link
Author

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

> npm ERR! notsup Unsupported platform for node-win-x86@10.4.1: 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants