Registry / devops / protoc-binaries

protoc-binaries

JSON →
library3.18.2jsnpmunverified

Provides pre-built protoc binaries and basic proto definitions, primarily for use with gRPC-Web. Version 3.18.2 is a specific protoc release. This package simplifies setup by avoiding manual download of protoc. It is a convenience wrapper, updated infrequently per protoc releases.

npm install protoc-binaries
INSTALL
IMPORT
SIG · PROTOC-BINARIES
P
protoc-binaries
devopsjavascriptv3.18.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

protoc
This package provides a binary; use via npm scripts or PATH.
Do not import JavaScript; it's a binary package.
Not a JavaScript import; use as a CLI binary.
.proto files
Include path to node_modules/protoc-binaries/google/protobuf
Importing .proto as JS module
You can reference bundled .proto definitions via -I flag.

Shows how to install, verify version, and compile a .proto file with gRPC-Web output.

// Install package npm install protoc-binaries // Use protoc binary via npx npx protoc --version // Compile a .proto file npx protoc --proto_path=./protos --js_out=import_style=commonjs,binary:./generated --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./generated ./protos/my_service.proto
Debug
Known issues
gotchaPackage only provides the binary; JavaScript API is not available.
fix
Use as a CLI tool via npx or npm scripts.
affects: all
deprecatedprotoc versions may lag behind official releases.
fix
Use official protoc or better-maintained packages.
affects: 3.18.2
Errors
Common errors & fixes
Error: Cannot find module 'protoc'
Trying to require() the binary as a JS module.
fix
Use as a command-line tool; do not import.
protoc: command not found
Binary not in PATH; need to use npx or local path.
fix
Run via npx protoc or ./node_modules/.bin/protoc
Upgrade
Version history
3.18.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
protoc-binaries — npm install protoc-binaries · libregistry