Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

Christopher Parke
Christopher Parke
21,978 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,326 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