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

arm arch grpc-tools installation issue #100

Open
sri-vathsa opened this issue Apr 14, 2021 · 10 comments
Open

arm arch grpc-tools installation issue #100

sri-vathsa opened this issue Apr 14, 2021 · 10 comments

Comments

@sri-vathsa
Copy link

I am using an ubuntu 20 ARM machine and to install grpc_tools_node_protoc_ts globally. Following is the output for the command

/usr/bin/protoc-gen-ts -> /usr/lib/node_modules/grpc_tools_node_protoc_ts/bin/protoc-gen-ts
+ [email protected]
updated 1 package in 0.436s

But I could not use the grpc_tools_node_protoc_plugin(I used the which grpc_tools_node_protoc_plugin to check this).
Can someone help me out on how to get the plugin working on my machine?

@agreatfool
Copy link
Owner

agreatfool commented Apr 15, 2021

Try to replace the which statement to ./node_modules/.bin/grpc_tools_node_protoc_plugin

Use the absolute path to replace.

@sri-vathsa
Copy link
Author

There is no .bin folder in the node_modules folder and I tried searching for the file globally using sudo find / -name "grpc_tools_node_protoc_plugin" and the only result is /usr/bin/grpc_tools_node_protoc_plugin . When I run
file /usr/bin/grpc_tools_node_protoc_plugin I got the following output

/usr/bin/grpc_tools_node_protoc_plugin: broken symbolic link to ../lib/node_modules/grpc-tools/bin/protoc_plugin.js

Then I changed into the above node_modules folder to search for the protoc_plugin.js file using find . -name "protoc_plugin.js" and found no results.

@agreatfool
Copy link
Owner

yarn add grpc-tools to install it to your local repo. then try with node_modules/.bin/...

@agreatfool

This comment has been minimized.

@sri-vathsa
Copy link
Author

node grpc does not provide binaries for ARM according to this. Is there any way I can use the plugin without installing the grpc-tools?

@agreatfool
Copy link
Owner

No... as you are trying to generate stub js codes from proto file, this action requires grpc-tools

@agreatfool
Copy link
Owner

I read through the ticket you pasted, that's not good, im switching to m1 chip mac soon.

@agreatfool agreatfool changed the title grpc_tools_node_protoc_plugin plugin not found arm arch grpc-tools installation issue Apr 15, 2021
@sri-vathsa
Copy link
Author

Maybe this ticket would also help.

@Clement-Jean
Copy link

For those who are on M1 mac, i made the install work with npm_config_target_arch=x64 npm i grpc-tools. It is probably not the best solution but it is working fine.

@agavitalis
Copy link

For those who are on M1 mac, i made the install work with npm_config_target_arch=x64 npm i grpc-tools. It is probably not the best solution but it is working fine.

This works

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

No branches or pull requests

4 participants