I am studying node js, express.
When I try to install 'nodemon', Error messages keep coming out.

1. What kind of error message is this?
2. What can I do to resolve it?
3. What should I study to learn about the route setting of Nodejs?

I ask for your help.

[error page](https://i.stack.imgur.com/1q5JT.png)

⬇ err messages is here ⬇
------------------------

npm ERR! code EACCES  

npm ERR! syscall mkdir  

npm ERR! path /usr/local/lib/node\_modules/nodemon  

npm ERR! errno -13  

npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node\_modules/nodemon'  

npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node\_modules/nodemon'] {  

npm ERR! errno: -13,  

npm ERR! code: 'EACCES',  

npm ERR! syscall: 'mkdir',  

npm ERR! path: '/usr/local/lib/node\_modules/nodemon'
npm ERR! }  

npm ERR!   

npm ERR! The operation was rejected by your operating system.  

npm ERR! It is likely you do not have the permissions to access this file as the current user  

npm ERR!   

npm ERR! If you believe this might be a permissions issue, please double-check the  

npm ERR! permissions of the file and its containing directories, or try running  

npm ERR! the command again as root/Administrator.  

npm ERR! A complete log of this run can be found in:  

npm ERR! /Users/mac/.npm/\_logs/2022-09-05T12\_16\_18\_604Z-debug-0.log  

---

And I put this
'npm install nodemon' on the terminal.

then it seems like install complete.

1. What is the difference of these ( npm install nodemon / npm -g install nodemon )

[enter image description here](https://i.stack.imgur.com/qIQDG.png)