# node_runtime: Respect npm release-age filters for managed npm installs \(\#56957\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/2a00db06ce6d01089bfafd207b6348078e980df9)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 2a00db06ce6d01089bfafd207b6348078e980df9

Requested commit: 2a00db06ce6d01089bfafd207b6348078e980df9

Commit: 2a00db06ce6d01089bfafd207b6348078e980df9

Tree: 405ed56ae2b4225059d6f6d67e97e66038c998c6

Author: Ben Brandt

Committer: GitHub

## Message

```
node_runtime: Respect npm release-age filters for managed npm installs (#56957)

Zed-managed npm installers were resolving a concrete latest version with
`npm info` and then installing `package@version`. That is brittle when
users
configure npm release-age filtering via `before` or `min-release-age`:
npm's
installer applies those rules during resolution, but our pinned install
target
could disagree with it, and therefore fail to install.

This changes managed npm installs to install `package@latest` and let
npm apply
its own resolver and user config. The local latest-version lookup
remains as a
best-effort cache freshness check, not as the exact install target.

Exact extension API installs remain unchanged because extensions
explicitly
request a package and version. If we want to revisit that we can.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #53611

Release Notes:

- Fixed npm-backed tool installs to better respect npm release-age
filters.
```

## Parents

- [10fc0fb5271e2f41d32cb11fcbe2c65ca6d67654](https://git.cafe/gitcafe/zed/commit/10fc0fb5271e2f41d32cb11fcbe2c65ca6d67654?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/2a00db06ce6d01089bfafd207b6348078e980df9?format=markdown)
