Skip to content

vp env doctor: Can't get rid of "note: For best results, bin should be first in PATH" #1133

@andrerfcsantos

Description

@andrerfcsantos

Describe the bug

I'm using Vite+ on Windows and I'm trying to ensure my Vite+ installation is properly setup by fixing the errors and warnings vp env doctor gives me.

I was expecting to be able to get rid of all the warnings and errors, but I can't seem to be able to get rid of "note: For best results, bin should be first in PATH".

Upon seeing this warning, I noticed that the C:\Users\andre\.vite-plus\bin was put at the bottom of my path in the system variables and I was getting this:

Image

Then I moved it to the top. I also added C:\Users\andre\.vite-plus\bin to the user's env vars and put it at the top.
But then I was getting:

Image

This was just a warning, so I ignored it when I installed it. However, today I was running some Vite+ commands and I was getting:

Image

Moving C:\Users\andre\.vite-plus\bin to the bottom of both the user's and system's Path variable seems to have fixed it, but vp env doctor still warns about "note: For best results, bin should be first in PATH".

At this point, I'm not sure if I should ignore the warning, or there is in fact something wrong with my installation.

Reproduction

No runnable reproduction

Steps to reproduce

  • Install Vite+ on Windows via the command provided irm https://vite.plus/ps1 | iex
  • Run vp env doctor and see the warning saying a high position for the command with a note "note: For best results, bin should be first in PATH"
  • Move the C:\Users\andre\.vite-plus\bin to be first in Path both for the user's and system's variable.
  • Restart the computer
  • See all vp commands fail with "vite-plus: failed to execute C:\Users\andre.vite-plus\current\bin\vp.exe"
  • Move C:\Users\andre\.vite-plus\bin down to be last in both Path variables
  • vp commands work again

System Info

$ vp env current
VITE+ - The Unified Toolchain for the Web

Environment:
  Version  24.14.1
  Source   lts

Tool Paths:
  node  C:\Users\andre\.vite-plus\js_runtime\node\24.14.1\node.exe
  npm   C:\Users\andre\.vite-plus\js_runtime\node\24.14.1\npm.cmd
  npx   C:\Users\andre\.vite-plus\js_runtime\node\24.14.1\npx.cmd



$ vp --version
VITE+ - The Unified Toolchain for the Web

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  npm v11.12.0
  Node.js          v24.14.1

Used Package Manager

npm

Logs

Validations

Metadata

Metadata

Assignees

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions