gRPC and Nodejs under Windows?

357 views
Skip to first unread message

Rob Cecil

unread,
Jul 31, 2015, 2:13:56 PM7/31/15
to grpc.io
I can see gRPC has a port for C#, and Nodejs. But what about Nodejs installed on Windows. Can it also run gRPC ?

Thanks!

Michael Lumish

unread,
Jul 31, 2015, 2:21:25 PM7/31/15
to Rob Cecil, grpc.io
We do plan to have the Node.js gRPC library work on Windows. However, at the moment the binding.gyp file is not set up to build the library on Windows.

On Fri, Jul 31, 2015 at 11:13 AM Rob Cecil <rob....@gmail.com> wrote:
I can see gRPC has a port for C#, and Nodejs. But what about Nodejs installed on Windows. Can it also run gRPC ?

Thanks!

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/e747e080-7701-4e2a-8412-e1101f81e00e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

alexand...@teamdev.com

unread,
Oct 22, 2015, 7:23:28 AM10/22/15
to grpc.io, rob....@gmail.com
As I understand, there is no way to use this lib under Windows. 
I built it on Linux and executed a simple sample from gRPC repo successfully. Then I copied it to Windows and the sample execution failed:

C:\node-example>node greeter_server
C
:\node-example\node_modules\grpc\node_modules\bindings\bindings.js:83
       
throw e
       
^

Error: %1 is not a valid Win32 application.
C
:\node-example\node_modules\grpc\build\Release\grpc.node
    at
Error (native)
    at
Module.load (module.js:355:32)
    at
Function.Module._load (module.js:310:12)
    at
Module.require (module.js:365:17)
    at
require (module.js:384:17)
    at bindings
(C:\node-example\node_modules\grpc\node_modules\bindings\bindings.js:76:44)
    at
Object.<anonymous> (C:\node-example\node_modules\grpc\src\client.js:43:31)
    at
Module._compile (module.js:434:26)
    at
Object.Module._extensions..js (module.js:452:10)
    at
Module.load (module.js:355:32)

So, the only way to use it under Window is to set up the "binding.gyp" file to build the library on Windows. 
Could you please inform me how soon are you going to do this? Thank you.

Michael Lumish

unread,
Oct 22, 2015, 2:05:01 PM10/22/15
to alexand...@teamdev.com, grpc.io, rob....@gmail.com
I have opened an issue to get the Node library working on Windows: https://github.com/grpc/grpc/issues/3922. I believe I can get it working this quarter.

Reply all
Reply to author
Forward
0 new messages