When I install node, I can't use it in new tab of opend terminal task. #18842

Closed
opened 2026-01-31 06:26:02 +00:00 by claunia · 2 comments
Owner

Originally created by @char-46 on GitHub (Nov 6, 2022).

Windows Terminal version

1.16.2642.0

Windows build number

10.0.22621.755

Other Software

No response

Steps to reproduce

  • Open Winodws Terminal
  • Setup node
  • Open new tab on Windows Terminal
  • Type npm

Expected Behavior

When I install node on my PC, It changes PATH environment variable. I expceted it can update its environment automatically. So I open a new tab on a exist window. I expced it can use npm right away.

Actual Behavior

When I typed npm, the powershell tell me that:
npm: The term 'ver' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
I tried use Run command to open a new powershell task to update its environment, but it follows my config then merged to the Windows Terminal window which exists and doesn't update its environment(i.e. the old process wt.exe's environment). So that I still can't use the npm command on the new powershell tab.

why I have to kill all process which running on the old wt process then that I can just use the new environment. if I don't accept that I'll have to make my dessktop mess?

Originally created by @char-46 on GitHub (Nov 6, 2022). ### Windows Terminal version 1.16.2642.0 ### Windows build number 10.0.22621.755 ### Other Software _No response_ ### Steps to reproduce * Open Winodws Terminal * Setup node * Open new tab on Windows Terminal * Type npm ### Expected Behavior When I install node on my PC, It changes PATH environment variable. I expceted it can update its environment automatically. So I open a new tab on a exist window. I expced it can use `npm` right away. ### Actual Behavior When I typed `npm`, the powershell tell me that: `npm: The term 'ver' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.` I tried use Run command to open a new powershell task to update its environment, but it follows my config then merged to the Windows Terminal window which exists and doesn't update its environment(i.e. the old process wt.exe's environment). So that I still can't use the `npm` command on the new powershell tab. why I have to kill all process which running on the old wt process then that I can just use the new environment. if I don't accept that I'll have to make my dessktop mess?
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 06:26:02 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Nov 7, 2022):

Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #1125 for more discussion.

/dup #1125

@zadjii-msft commented on GitHub (Nov 7, 2022): Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #1125 for more discussion. /dup #1125
Author
Owner

@ghost commented on GitHub (Nov 7, 2022):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Nov 7, 2022): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18842