sachaw / node-protoc

Modern protoc wrapper for Node.
0 stars 2 forks source link

 Trying to use this on apple silicon (M1) and i get the error below #1

Open KonstantinosTsolakidis opened 2 years ago

KonstantinosTsolakidis commented 2 years ago

`# This file contains the result of Yarn building a package (node-protoc@npm:1.0.3)

Script name: postinstall

/Users/.../node_modules/node-protoc/dist/postinstall.js:77 throw new Error("Unsupported platform. Was not able to find a proper protoc version."); ^

Error: Unsupported platform. Was not able to find a proper protoc version. at Object. (/Users/.../node_modules/node-protoc/dist/postinstall.js:77:11) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:17:47 `

Are there any plans to support this?

sachaw commented 2 years ago

Sure, I can fix this, could you please give me the value of process.arch and process.platform, there's not a lot of useful info online. Thanks

KonstantinosTsolakidis commented 2 years ago

Hope these can help.

Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:24 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T8101

sachaw commented 2 years ago

could you please run this in a terminal:

node
console.log(process.arch);
console.log(process.platform);

You should see something like this:

> console.log(process.arch);
x64
undefined
> console.log(process.platform);
linux
undefined
>
KonstantinosTsolakidis commented 2 years ago

Sure

console.log(process.arch); arm64 console.log(process.platform); darwin

sachaw commented 2 years ago

Hi, thanks for that, the upstream work is done, but we need to wait for the 3.20 release as mentioned here: https://github.com/protocolbuffers/protobuf/issues/9200 As soon as that's done, I'll release an update.

KonstantinosTsolakidis commented 2 years ago

Hi, thanks for that, the upstream work is done, but we need to wait for the 3.20 release as mentioned here: protocolbuffers/protobuf#9200 As soon as that's done, I'll release an update.

Great! Thanks!

renatobenks commented 3 weeks ago

Any update on this? I see this has been lingering for 3 years now. I can push a fix, just wanna know whether this project is still being maintained?