Error when running npm install -g nodemon
Opened this issue · 2 comments
NanaPokun commented
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:
- Open the Run command box with Windows key + R
- Type powershell in the dialogue box
- Click Ctrl + Shift + Enter key to open powershell
- Paste the command : Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
- Press Y on prompt and hit enter
- Go back to your text editor(I use VSCode) and run the command npm install -g nodemon and run your server
Akinyosoye-Oluwatobiloba commented
Check the npm Documentation...then search for nodemon you'll find your needed resources for it
iusamahub commented
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.