pkg icon indicating copy to clipboard operation
pkg copied to clipboard

PKG: prebuild-install WARN install No prebuilt binaries found

Open BarakBinyamin opened this issue 3 years ago • 1 comments

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

BarakBinyamin avatar Jun 20 '22 19:06 BarakBinyamin

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

github-actions[bot] avatar Sep 19 '22 00:09 github-actions[bot]

This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit.

github-actions[bot] avatar Sep 24 '22 00:09 github-actions[bot]