JavaScript Building a MEAN Application Going MEAN with Express Setting Up an Express API

Christopher Parke
Christopher Parke
21,977 Points

Nodemon not going into Environment Variables.

Hi, I type the commands exactly as in the video

"npm install nodemon"

It installs nodemon successfully.

I type "nodemon"

it says "'C:\Users\Christopher\AppData\Roaming\npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:17

  • set PATH=%PATH%;C:\Users\Christopher\AppData\Roaming\npm;
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : ObjectNotFound: (C:\Users\Christopher\AppData\Roami ng\npm:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException"

1 Answer

Michael Liendo
Michael Liendo
15,325 Points

I believe you're forgetting the -g flag to install it globally and not just as a package dependency. If you only want to have it locally, add the --save-dev flag