Skip to content

Does not install the 'latest' Node.js version #1188

Closed

Description

@jonkoops

Describe the bug

When running vp env install latest or vp env default latest Node.js 24 is installed. However, at the time of writing the 'latest' version of Node.js is actually 25.

Reproduction

N/A

Steps to reproduce

  1. vp env install latest
  2. Observe the LTS version is installed instead.

System Info

Environment:
  Version  24.14.1
  Source   VITE_PLUS_NODE_VERSION

Tool Paths:
  node  /home/jon/.vite-plus/js_runtime/node/24.14.1/bin/node
  npm   /home/jon/.vite-plus/js_runtime/node/24.14.1/bin/npm
  npx   /home/jon/.vite-plus/js_runtime/node/24.14.1/bin/npx


vp v0.1.14

Local vite-plus:
  vite-plus  Not found

Tools:
  vite             Not found
  rolldown         Not found
  vitest           Not found
  oxfmt            Not found
  oxlint           Not found
  oxlint-tsgolint  Not found
  tsdown           Not found

Environment:
  Package manager  Not found
  Node.js          v24.14.1 (VITE_PLUS_NODE_VERSION)

Used Package Manager

npm

Logs

Validations

Activity

  1. added theissue type on Mar 28, 2026
  2. fengmk2 commented on Mar 29, 2026

    @fengmk2
    Member

    This is the logic currently specifically defined by Vite+, where latest represents the newest LTS version

  3. jonkoops commented on Mar 30, 2026

    @jonkoops
    Author

    I'd argue that is a counterintuitive choice. Considering the named options are 'lts' and 'latest', one would assume that 'lts' is the latest LTS and 'latest' is the latest released version (sans LTS).

  4. fengmk2 commented on Mar 30, 2026

    @fengmk2
    Member

    @cpojer @TheAlexLichter do you have any suggestions?

  5. TheAlexLichter commented on Mar 30, 2026

    @TheAlexLichter
    Member

    I agree with @jonkoops. LTS !== Latest and latest should be the actual latest version (so, odd-numbered if available).

    Luckily this won't be an issue in the future given that Node changed their release schedule. (will still be relevant as they don't promote latest to LTS right away).

  6. self-assigned this
    on Mar 30, 2026
  7. added a commit that references this issue on Apr 1, 2026
    4028a74
  8. added a commit that references this issue on Apr 1, 2026
    4bf3ec1
  9. jonkoops commented on Apr 1, 2026

    @jonkoops
    Author

    Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Fields

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions