iamshaunjp/node-crash-course

Error when running npm install -g nodemon

Opened this issue · 2 comments

I had an error when I tried to run npm install -g nodemon
I had a running script disabled error from the terminal and this is how I fixed it:

  1. Open the Run command box with Windows key + R
  2. Type powershell in the dialogue box
  3. Click Ctrl + Shift + Enter key to open powershell
  4. Paste the command : Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
  5. Press Y on prompt and hit enter
  6. Go back to your text editor(I use VSCode) and run the command npm install -g nodemon and run your server

Check the npm Documentation...then search for nodemon you'll find your needed resources for it

Step 1 : Go to this location --> File C:\Users\Dell\AppData\Roaming\npm
Step 2 : Delete the nodemon.ps1 file and run the command.

It works fine.