<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/does-this-install-succeed-if-it-does-which-three-versions-end-up-in-your-lockfile--b43gobmx8" -->

---
title: Does this install succeed? If it does, which three...
description: A dependency resolution puzzle challenges readers to determine whether a package install succeeds and which versions end up in the lockfile. Given three...
canonical: https://daily.dev/posts/does-this-install-succeed-if-it-does-which-three-versions-end-up-in-your-lockfile--b43gobmx8
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Does this install succeed? If it does, which three versions end up in your lockfile? | daily.dev
og:description: A dependency resolution puzzle challenges readers to determine whether a package install succeeds and which versions end up in the lockfile. Given three...
og:url: https://daily.dev/posts/does-this-install-succeed-if-it-does-which-three-versions-end-up-in-your-lockfile--b43gobmx8
og:image: https://api.daily.dev/og/posts/b43GoBmX8.png
og:image:alt: Does this install succeed? If it does, which three versions end up in your lockfile?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Does this install succeed? If it does, which three versions end up in your lockfile?

**[Google for Developers](https://daily.dev/sources/googledevelopers)** · 1 min read · 0 upvotes · 0 comments

## Summary

A dependency resolution puzzle challenges readers to determine whether a package install succeeds and which versions end up in the lockfile. Given three required packages (router 2.0+, parser 1.0+, tokens 1.0+) and six available versions with conflicting constraints, the resolver must find a compatible set using two rules: only one version per package, and always prefer the newest compatible version. A bonus question asks about the computational complexity class of version solving.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=UUozyqDNRGg>

## Similar posts on daily.dev

- [Keeping one version of everything](https://daily.dev/posts/keeping-one-version-of-everything-vva4lkoge) · Farid Zakaria’s Blog · 0 upvotes · 0 comments
- [Maybe version ranges are a good idea after all?](https://daily.dev/posts/maybe-version-ranges-are-a-good-idea-after-all--pkmug8ax8) · Neil Madden · 3 upvotes · 0 comments
- [Why npm Dependency Trees Are So Big](https://daily.dev/posts/why-npm-dependency-trees-are-so-big-dxeylgflr) · Andrew Nesbitt · 10 upvotes · 2 comments
- [If It Quacks Like a Package Manager](https://daily.dev/posts/if-it-quacks-like-a-package-manager-rsetoxikw) · Lobsters · 0 upvotes · 0 comments

---

[View this post on daily.dev](https://daily.dev/posts/does-this-install-succeed-if-it-does-which-three-versions-end-up-in-your-lockfile--b43gobmx8)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Does this install succeed? If it does, which three versions end up in your lockfile?","url":"https://daily.dev/posts/does-this-install-succeed-if-it-does-which-three-versions-end-up-in-your-lockfile--b43gobmx8","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/does-this-install-succeed-if-it-does-which-three-versions-end-up-in-your-lockfile--b43gobmx8"},"datePublished":"2026-07-27T13:11:36.931Z","dateModified":"2026-07-27T13:11:51.569Z","description":"A dependency resolution puzzle challenges readers to determine whether a package install succeeds and which versions end up in the lockfile. Given three...","image":"https://i.ytimg.com/vi/UUozyqDNRGg/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/UUozyqDNRGg/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Google for Developers","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Google for Developers","logo":"https://media.daily.dev/image/upload/s--jj3nxRoG--/f_auto/v1725035497/logos/googledevelopers","url":"https://daily.dev/sources/googledevelopers"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/does-this-install-succeed-if-it-does-which-three-versions-end-up-in-your-lockfile--b43gobmx8","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"","timeRequired":"PT1M","video":{"@type":"VideoObject","name":"Does this install succeed? If it does, which three versions end up in your lockfile?","description":"A dependency resolution puzzle challenges readers to determine whether a package install succeeds and which versions end up in the lockfile. Given three...","thumbnailUrl":"https://i.ytimg.com/vi/UUozyqDNRGg/sddefault.jpg","uploadDate":"2026-07-27T13:11:36.931Z","duration":"PT1M","url":"https://api.daily.dev/r/b43GoBmX8","embedUrl":"https://www.youtube.com/embed/UUozyqDNRGg"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Google for Developers","item":"https://daily.dev/sources/googledevelopers"},{"@type":"ListItem","position":3,"name":"Does this install succeed? If it does, which three versions end up in your lockfile?"}]}
```

