deno icon indicating copy to clipboard operation
deno copied to clipboard

`deno install` needs to be run multiple times to get a complete install

Open lucacasonato opened this issue 6 months ago • 1 comments
trafficstars

Image

I am using a package.json and a deno.lock. @dsherret thinks he knows what is going on.

lucacasonato avatar May 18 '25 15:05 lucacasonato

Investigated this one a bit and I have no clue what's going on. The restart logic seems ok.

The error originates at one of these places:

  • https://github.com/denoland/deno_npm/blob/1b814980bb7fb3941431237d4b4baf86c4c9939c/src/resolution/common.rs#L92-L97
  • https://github.com/denoland/deno_npm/blob/1b814980bb7fb3941431237d4b4baf86c4c9939c/src/resolution/graph.rs#L727
  • https://github.com/denoland/deno_npm/blob/1b814980bb7fb3941431237d4b4baf86c4c9939c/src/resolution/graph.rs#L1200

So it seems to be a case where the packument strangely doesn't contain the version that was previously resolve before? That should cause a restart and download the latest packument, but maybe there's a bug.

dsherret avatar May 26 '25 16:05 dsherret