Skip to content

Error when running npm install -g nodemon  #29

Open

Description

@NanaPokun

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

Activity

  1. Akinyosoye-Oluwatobiloba commented on Sep 13, 2022

    @Akinyosoye-Oluwatobiloba

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

  2. iusamahub commented on Nov 3, 2022

    @iusamahub

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions