Home > Enterprise >  Why doesn't npm modules' commands work in VSCode Terminal?
Why doesn't npm modules' commands work in VSCode Terminal?

Time:11-17

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!

CodePudding user response:

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

It should come preinstalled alongside npm

npx nodemon

CodePudding user response:

Answer: You have to make sure that the variables

 C:\Program Files\nodejs\

 C:\Users\(your Username)\AppData\Roaming\npm\node_modules

are present in your system environment variables under the path tab

  • Related