Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

protoc-gen-js: program not found or is not executable

Trying to compile my protos - I need to compile them to use in my react app. But I get this error. I run the command as follows:

cd src/main/proto && protoc -I=. *.proto --js_out=import_style=commonjs:. --grpc-web_out=import_style=commonjs,mode=grpcwebtext:.

Where can I find protoc-gen-js? I didn't come across any repo for it.

like image 422
Asma Rahim Ali Jafri Avatar asked Aug 31 '25 01:08

Asma Rahim Ali Jafri


1 Answers

run this command this command will globally install protoc-gen-js

  npm install -g protoc-gen-js
like image 139
Irshit Mukherjee Avatar answered Sep 02 '25 19:09

Irshit Mukherjee