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

Rebekah Shaw
Rebekah Shaw
17,475 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
PRO
Dave Harker
Pro Student 15,508 Points

Hi Rebekah,

Perhaps try using elevated permissions (sudo)

sudo npm install -g nodemon

Good luck,

Dave.

Dave Harker
Dave Harker
Pro Student 15,508 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.