a broblem of Windows Terminal + nodejs

Revie 1 Reputation point

When I open it from ( and only from this) the right-click menu,
it can not run commands about nodejs
But other environment variables can read normally, like jre
Help plz >_>
detals follow:156633-55.png

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
7,633 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hugo Barona 371 Reputation points MVP

    Hi @Revie ,

    it looks like your environment variables are not correctly configured for Node and Npm.

    Try to reinstall it using the windows installer, and check the option to add Node to the environment variables.

    And then close all terminals and reopen, so it loads the new environment variable.

    Alternatively, if you feel comfortable, you can edit the environment variables manually and add the path for your node installation.