-2

enter image description here

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.

Assim
  • 1
  • 1

1 Answers1

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