When i tried to install nodemon package using npm i got errors as shown in the picture. I also tried using sudo but nothing changed.
Asked
Active
Viewed 160 times
1 Answers
0
you can use this command.
sudo npm install nodemon -g
sudo
makes sure that the command would run as a superuser that allows users to run programs with the security privileges of another user (normally the superuser, or root).
-g
instructs npm to install the node package globally onto the system.

umeshbhat
- 93
- 1
- 10
-
1A good answer will always include an explanation why this would solve the issue, so that the OP and any future readers can learn from it. – Tyler2P Jan 30 '22 at 21:58
-
-
1@Assim you are using ```npm sudo install nodemon -g ```. use ```sudo npm install nodemon -g``` instead. – umeshbhat Feb 09 '23 at 06:54