PKG: prebuild-install WARN install No prebuilt binaries found
What version of pkg are you using?
5.7.0
What version of Node.js are you using?
14.17.6
What operating system are you using?
Ubuntu 18.04
What CPU architecture are you using?
x_86_64
What Node versions, OSs and CPU architectures are you building for?
default
Describe the Bug
I'm pretty new to node and I just found the awesome pkg project. It's been working great turning my javascript into .exe's until I included node-libcurl
Here's the code that compiles:
const { spawnSync } = require('child_process')
const cheerio = require("cheerio")
let link = "https://google.com"
const child = spawnSync(`curl`, [link])
const html = child.stdout
const HTMLobject = cheerio.load(html)
console.log(HTMLobject.html())
Here's the code that fails:
const cheerio = require("cheerio")
const { curly } = require('node-libcurl')
let link = "https://google.com"
curly.get(link).then(request=>{
const html = request.data
const HTMLobject = cheerio.load(html)
console.log(HTMLobject.html())
})
Here is the output of $> pkg index.js with errors:
> [email protected]
> Targets not specified. Assuming:
node14-linux-x64, node14-macos-x64, node14-win-x64
prebuild-install WARN install No prebuilt binaries found (target=v14.19.2 runtime=node arch=x64 libc= platform=linux)
prebuild-install WARN install No prebuilt binaries found (target=v14.19.2 runtime=node arch=x64 libc= platform=darwin)
prebuild-install WARN install No prebuilt binaries found (target=v14.19.2 runtime=node arch=x64 libc= platform=win32)
Why does it work for one script but not the other? Thanks in advance!
Expected Behavior
Built with no errors
To Reproduce
Here's the code that fails:
const cheerio = require("cheerio")
const { curly } = require('node-libcurl')
let link = "https://google.com"
curly.get(link).then(request=>{
const html = request.data
const HTMLobject = cheerio.load(html)
console.log(HTMLobject.html())
})
pkg index.js
This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label
This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit.