a broblem of Windows Terminal + nodejs

Revie 1 Reputation point
2021-12-10T09:58:01.99+00:00

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.
8,989 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hugo Barona 391 Reputation points MVP
    2021-12-10T15:52:36.463+00:00

    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.

    https://nodejs.org/en/download/

    Cheers