JCMais / node-libcurl

libcurl bindings for Node.js
https://npmjs.org/package/node-libcurl
MIT License
666 stars 118 forks source link

Can't build lib in Debian 9 #376

Closed obriankevin11 closed 1 year ago

obriankevin11 commented 1 year ago

Hi, I'm having troubles to use the lib in my node project on Debian 9 (which runs ok on windows). I have the following error msg: Error: Cannot find module '../lib/binding/node_libcurl.node'

node: 16.13.1 npm: 8.1.2

So I'm trying to build it but can't figure things out. I have all the requirements: gcc >= 4.8 libcurl dev files python 2.7

I tried "npm install node-libcurl --build-from-source" but it just installs the prebuilt package. Any idea (of what I'm doing wrong :))? Thank you.

JCMais commented 1 year ago

You need Python 3.0 to build the newer version of node-libcurl. I forgot to update the README with the changes. Take a look on the CHANGELOG for the most recent requirements.

obriankevin11 commented 1 year ago

Thank you.