您好,我有Ionic项目,需要使用协议缓冲区。但是我找不到任何资源或教程。我在Ionic的stackoverflow协议缓冲区中发现了这个问题
我也遵循这个https://golb.hplar.ch/2017/01/Consume-Protocol-Buffer-messages-in-Ionic-2.html。
但是它给出了一个错误。
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] pbts: `pbjs -t static-module ../server/src/main/protobuf/Earthquake.proto -o src/app/protos/earthquake.js && pbts --no-comments src/app/protos/earthquake.js -o src/app/protos/earthquake.d.ts`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] pbts script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ozer0\AppData\Roaming\npm-cache\_logs\2020-03-28T18_46_04_909Z-debug.log
这是错误。
ionic 4的协议缓冲区是否有任何资源,非常感谢。
https://golb.hplar.ch/2017/01/Consume-Protocol-Buffer-messages-in-Ionic-2.html我想这个tutorail指出了所有重要的观点。
../server/src/main/protobuf/Earthquake.proto
检查位置Earthquake.proto是否在此路径中。如果您修复它,它将起作用。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句