Skip to content

[Issue]: nvm-win 1.2.2 fresh install, Seeing Corey's path in Start-process filepath #1263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
h0h0h0 opened this issue May 20, 2025 · 0 comments

Comments

@h0h0h0
Copy link

h0h0h0 commented May 20, 2025

What happened?

After installing on a fresh Windows 11 via Windows Installer I installed a single node version globally. During standard development work I ran Run Get-NetTCPConnection and got the following error. I am not corey.
Note the path for start-process below.

`Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
At line:1 char:1

  • Start-Process -Filepath 'C:\Users\corey\OneDrive\Documents\workspace\ ...
  •   + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException
      + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand`
    
    

What did you expect to happen?

I expected Get-NetTCPConnection to run. I did not expect it to start from C:\Users\corey. I am not corey.

Version

1.2.0 or newer (Default)

Which version of Windows?

Windows 11+ (Default)

Which locale?

English (Default)

Which shell are you running NVM4W in?

PowerShell

User Permissions?

Administrative Privileges, Elevated

Is Developer Mode enabled?

None

Relevant log/console output

PS C:\Users\ShaunFarrugia> Run Get-Variable
Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
At line:1 char:1
+ Start-Process -Filepath 'C:\Users\corey\OneDrive\Documents\workspace\ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException
    + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand

Debug Output

nvm debug

`Running NVM for Windows with administrator privileges.

Windows Version:        10.0 (Build 26100)

NVM4W Version:          1.2.2
NVM4W Author Bridge:    1.0.1
NVM4W Path:             C:\Users\ShaunFarrugia\AppData\Local\nvm\nvm.exe
NVM4W Settings:         C:\Users\ShaunFarrugia\AppData\Local\nvm\settings.txt
NVM_HOME:               C:\Users\ShaunFarrugia\AppData\Local\nvm
NVM_SYMLINK:            C:\nvm4w\nodejs
Node Installations:     C:\Users\ShaunFarrugia\AppData\Local\nvm
Default Architecture:   64-bit
Mirrors:                No mirrors configured
HTTP Proxy:             none

Total Node.js Versions: 1
Active Node.js Version: v22.15.0

IPv6 is enabled. This has been known to slow downloads significantly.

No problems detected.

⚠️  NVM for Windows will eventually be succeeded by Author/Runtime`

Anything else?

Let me know if you need anything else on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant