pkg icon indicating copy to clipboard operation
pkg copied to clipboard

Not found in remote cache: node16-win-x86

Open paulsmithkc opened this issue 2 years ago • 3 comments

What version of pkg are you using?

5.7.0

What version of Node.js are you using?

16.16.0

What operating system are you using?

macOS

What CPU architecture are you using?

Apple M1

What Node versions, OSs and CPU architectures are you building for?

node16-win-x86

Describe the Bug

When I try to make a build for target: node16-win-x86

I am seeing the following error message:

> [email protected]
> Fetching base Node.js binaries to PKG_CACHE_PATH
  fetched-v16.15.0-win-x86            [                    ] 0%
> Error! 404: Not Found
> Not found in remote cache:
  {"tag":"v3.4","name":"node-v16.15.0-win-x86"}

Expected Behavior

Build succeeds without error.

To Reproduce

  1. nvm install 16
  2. Create a project
  3. Configure a target of node16-win-x86 in package.json
  4. pkg .

paulsmithkc avatar Jul 07 '22 23:07 paulsmithkc

This is what i get when running the above, if i use node14 i get stuck with Could not find NASM, install it or build with openssl-no-asm. See BUILDING.md.

[email protected] Fetching base Node.js binaries to PKG_CACHE_PATH fetched-v16.15.0-win-x86 [ ] 0% Error! 404: Not Found Not found in remote cache: {"tag":"v3.4","name":"node-v16.15.0-win-x86"} Building base binary from source: built-v16.15.0-win-x86 Error! Not able to build for 'win' here, only for 'macos'

JamesAngier avatar Jul 10 '22 22:07 JamesAngier

https://github.com/vercel/pkg/issues/1685#issue-1298240056 I have same problem

maksgithub avatar Jul 22 '22 11:07 maksgithub

BUILDING.md.

  1. Install https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/win64/
  2. Add System Environment Variable Path -> C:\Program Files\NASM

maksgithub avatar Jul 22 '22 11:07 maksgithub

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 Oct 21 '22 00:10 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 Oct 27 '22 00:10 github-actions[bot]

Not resolved.

paulsmithkc avatar Nov 17 '22 14:11 paulsmithkc

Not resolved.

Do you know where the cache is stored?

Seem like they only build cache for x64 so If you want to use a prebuilt version, install NodeJs x64.

ThinhVu avatar Feb 24 '23 12:02 ThinhVu