blokur / grpc-ts-demo

🎵 Demo of a gRPC client and server implementation in TypeScript
MIT License
124 stars 30 forks source link

Windows Machine Issue #23

Closed raviroshanmehta closed 1 year ago

raviroshanmehta commented 1 year ago

Not able to run this project on a windows environment. Does anyone have the same issue? I am using Windows 10 for development.

C:\projects\grpc-ts-demo>yarn build yarn run v1.14.0 $ yarn run lint $ yarn run eslint --fix --ext .ts src $ C:\projects\grpc-ts-demo\node_modules.bin\eslint --fix --ext .ts src $ sh ./scripts/build-protos.sh ./songs.proto ./src/proto && yarn run tsc $ C:\projects\grpc-ts-demo\node_modules.bin\grpc_tools_node_protoc --plugin=protoc-gen-ts=./node_modules/.bin/pr

otoc-gen-ts --ts_out=grpc_js;.\src\proto --js_out=import_style=commonjs,binary;.\src\proto --grpc_out=grpc_js;.\s

rc\proto -I ./proto proto/songs.proto --ts_out: protoc-gen-ts: %1 is not a valid Win32 application.

C:\projects\grpc-ts-demo\node_modules\grpc-tools\bin\protoc.js:41 throw error; ^

Error: Command failed: C:\projects\grpc-ts-demo\node_modules\grpc-tools\bin\protoc.exe --plugin=protoc-gen-grpc=C

:\projects\grpc-ts-demo\node_modules\grpc-tools\bin\grpc_node_plugin.exe --plugin=protoc-gen-ts=./node_modules/.b

in/protoc-gen-ts --ts_out=grpc_js;.\src\proto --js_out=import_style=commonjs,binary;.\src\proto --grpc_out=grpc_j

s;.\src\proto -I ./proto proto/songs.proto --ts_out: protoc-gen-ts: %1 is not a valid Win32 application.

at ChildProcess.exithandler (child_process.js:308:12)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1048:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) {

killed: false, code: 1, signal: null, cmd: 'C:\projects\grpc-ts-demo\node_modules\grpc-tools\bin\protoc.exe --plugin=protoc-gen-grpc=C:\projec

ts\grpc-ts-demo\node_modules\grpc-tools\bin\grpc_node_plugin.exe --plugin=protoc-gen-ts=./node_modules/.bin/

protoc-gen-ts --ts_out=grpc_js;.\src\proto --js_out=import_style=commonjs,binary;.\src\proto --grpcout=grpc

js;.\src\proto -I ./proto proto/songs.proto' } error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.