Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Building a MEAN Application Introduction to the MEAN Stack Setting Up an Express Application

Rebekah Shaw
Rebekah Shaw
18,687 Points

Can't run nodemon after installing it from the terminal

I have installed nodemon in the terminal with the following line as stated in the video

npm install -g nodemon

Once install and I enter nodemon into the terminal I get the following message.

-bash: nodemon: command not found

Any idea what I am doing wrong?

1 Answer

Dave Harker
PLUS
Dave Harker
Pro Student 15,510 Points

Hi Rebekah,

Perhaps try using elevated permissions (sudo)

sudo npm install -g nodemon

Good luck,

Dave.

Dave Harker
Dave Harker
Courses Plus Student 15,510 Points

Hi again,

While I think you should try with sudo first ... if that doesn't work I just came across this link which might inspire some other ideas.

Kind regards,

Dave.