Error: Cannot Find Module 'google-protobuf'
Following to my previous question, I'm trying to use protocol buffers in node.js. I've generated ServiceMessage_pb.js from my ServiceMessage.proto, and add the following code: var
Solution 1:
You can install the module with npm:
npm install --save protobuf
Then require it this way:
var my_protobuff = require ("protobuf");
Solution 2:
npm i google-protobuf
I run into so many problem installing just "protobuf" !
Also the official protobuf javascript package is "google-protobuf": https://www.npmjs.com/package/google-protobuf
Post a Comment for "Error: Cannot Find Module 'google-protobuf'"