at integrated terminal or mac os terminal does not matter, just write: su and enter and input pass. After become root install "npm install -g nodemon" It is worked with me with this way.