skip to Main Content

If I type any Nodejs command in Vscode Terminal there comes the error

The term "nodemon" was not recognized as the name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if the path is correct (if included),
and repeat the process.

It also doesn’t works in external Terminal but it works in Terminal which isn’t opened by VSCode.

Thanks for your help!

2

Answers


  1. Chosen as BEST ANSWER

    You have to make sure that the variables:

    • C:Program Filesnodejs
    • C:Users(your Username)AppDataRoamingnpmnode_modules

    are present in your system environment variables under the path tab.


  2. If you’re using windows, you should use the npx command to run modules.

    It should come preinstalled alongside npm

    npx nodemon
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search