'PKG: prebuild-install WARN install No prebuilt binaries found

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!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source