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.

no such file or directory, stat '/root/.pkg-cache/v2.6/fetched-v10.15.3-win-x64.downloading'

See original GitHub issue
sudo pkg index.js
> pkg@4.4.0
> Targets not specified. Assuming:
  node10-linux-x64, node10-macos-x64, node10-win-x64
> Fetching base Node.js binaries to PKG_CACHE_PATH
  fetched-v10.15.3-linux-x64   [====================] 100%
  fetched-v10.15.3-macos-x64   [====================] 100%
  fetched-v10.15.3-win-x64     [====================] 100%
> Error! Error: ENOENT: no such file or directory, stat '/root/.pkg-cache/v2.6/fetched-v10.15.3-win-x64.downloading'

using deepin linux distro

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
awkward-minioncommented, Jul 4, 2022

Oh! got it now. I was using docker, it defaults to root user. Thankyou @robertsLando.

1reaction
robertsLandocommented, Jul 4, 2022

Error! Error: ENOENT: no such file or directory, stat '/root/.pkg-cache/…

Means that pkg has been run as root

Read more comments on GitHub >

github_iconTop Results From Across the Web

Binary not found · Issue #137 · vercel/pkg-fetch - GitHub
It uses pkg fetch package.json version in the format v${major}.${minnor} to get the github release, once it gets the release it checks in...
Read more >
pkg-fetch - npm
Compiles and stores base binaries for pkg. Latest version: 3.4.2, last published: 5 months ago. Start using pkg-fetch in your project by ...
Read more >
Building Node.js Binary with `pkg` for ARMv7 / Ubuntu 14 fails ...
I've got no clue where to go from here... Is there some way to compile the binary via pkg with different options, or...
Read more >
How To Fix the “Enoent” Error? - Position Is Everything
The “enoent” can appear because of some missing files or usage of the relative path that can be solved by creating an expected...
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