# Fix caching of Node.js runtime paths and improve error messages \(\#32198\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6de5d29bff55727e7fab40c7c38cfb6f80a2e0e2

Requested commit: 6de5d29bff55727e7fab40c7c38cfb6f80a2e0e2

Commit: 6de5d29bff55727e7fab40c7c38cfb6f80a2e0e2

Tree: 3d09b2f9b1ee1b9738aabd2eb87eecc4e5f02848

Author: Michael Sloan

Committer: GitHub

## Message

```
Fix caching of Node.js runtime paths and improve error messages (#32198)

* `state.last_options` was never being updated, so the caching wasn't
working.

* If node on the PATH was too old it was logging errors on every
invocation even though managed node is being used.

Release Notes:

- Fixed caching of Node.js runtime paths and improved error messages.
```

## Parents

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

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