question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failure executing pkg: Error! 404 Not Found

See original GitHub issue

Hi, while trying to build our project, one of the steps is to convert our node-based application into an win32 executable. We use pkg for that. However, since yesterday, it seems to be failing with the following error:

C:\...\>npx pkg . -t win --out-path dist                      
npx: installed 173 in 12.245s
> pkg@4.5.0
> Fetching base Node.js binaries to PKG_CACHE_PATH
  fetched-v14.16.0-win-x64     [                    ] 0%
> Error! 404 Not Found
  https://github.com/zeit/pkg-fetch/releases/download/v2.6/uploaded-v2.6-node-v14.16.0-win-x64
> Asset not found by direct link:
  {"tag":"v2.6","name":"uploaded-v2.6-node-v14.16.0-win-x64"}
> Not found in GitHub releases:
  {"tag":"v2.6","name":"uploaded-v2.6-node-v14.16.0-win-x64"}
> Building base binary from source:
  built-v14.16.0-win-x64
> Cloning Node.js repository from GitHub...
  git                          [                    ] 0%^CTerminate batch job (Y/N)? 

I’m aware of the recent faulty release of 2.7.0 that caused this, and the subsequent 2.6.10 release that was supposed to fix this issue. However, it still seems to be failing.

As we are about to release a new version of our product, is there any work around available such that we can move on, like specifying specific versions of pkg and/or pkg-fetch in our package.json?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
evalkering-mindeskcommented, Mar 26, 2021

@ipapast , you suggestion https://github.com/vercel/pkg-fetch/issues/134#issuecomment-808113169 seems to be working. If I change the command to: npx pkg . -t node14.4.0-win --out-path dist it works.

Thanks!

1reaction
alexpavlovichcommented, Mar 26, 2021

@robertsLando it would be more convenient if you would close the issue after the fix was committed, so the participants could be notified about the fix

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm 404 Not found, well known package - Stack Overflow
Trying to install 7zip-bin package using npm, bring this error: npm ERR! code E404 npm ERR! 404 Not Found: 7zip-bin@5.0.3 npm ERR!
Read more >
How to fix apt 404 Not Found error on Debian/Ubuntu
You may encounter a “404 Not Found” error when you want to install a package in a Debian-based host. The reason is quite...
Read more >
How can I fix a 404 Error when using a PPA or updating my ...
The 404 or Not Found error message is a HTTP standard response code indicating that the client was able to communicate with the...
Read more >
The yum command fails with the "HTTP Error 404 -Not Found ...
Problem description​​ A similar error occurs when you run yum -y install XXX , yumlist , or yum search XXX command to obtain...
Read more >
How to Fix Ubuntu/Debian apt-get 404 Not Found Repository ...
When using the desktop version of Ubuntu you'll eventually get or probably have the problem that apt-get update throws a lot "Failed to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found