Coder Social home page Coder Social logo

node-protoc's People

Contributors

achingbrain avatar dankeboy36 avatar vincent-raman avatar yeppha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

node-protoc's Issues

Doesn't account for HTTP_PROXY or HTTPS_PROXY

In the postinstall script a protoc binary is downloaded from a URL using node-fetch:

const response = await fetch.default(releases[release]);

But, neither HTTP_PROXY nor HTTPS_PROXY are being taken into account. This causes the download to hang in environments with a restricted firewall (e.g. some companies).

Would it be possible to account for http proxies?

We could use node-http-proxy-agent if the HTTP_PROXY or the HTTPS_PROXY environment variable is defined: https://stackoverflow.com/questions/60162485/how-to-configure-node-fetch-to-use-the-company-proxy

Please add support for `darwin_x86_32`

I am getting following error when running yarn install on node v16.16.0.

Error: Unsupported platform: darwin_x86_32. Was not able to find a proper protoc version.

Need support m1 macbook pro

Currently when i install the package npm install protoc --save-dev
I got error : Unsupported platform: darwin_x86_32. Was not able to find a proper protoc version.

Not working properly with `yarn` on linux

I encountered an issue while utilizing the package on a Linux system using yarn. The error message /usr/bin/env: 'node\r': No such file or directory was thrown. Upon further investigation, I determined that the cause of the error was due to the usage of CRLF line endings in the protoc/bin/protoc file. To resolve the issue, I was required to convert the line endings in the postinstall script. Any ideas to make this solution less hacky and still use yarn?

For anyone struggling with the same issue - add this lines to package.json:

"scripts": {
    "postinstall": "npx crlf --set=LF ./node_modules/protoc/bin/protoc"
},
"devDependencies": {
    "crlf": "^1.1.1",
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.