skip to Main Content

On running npm start my node js is not starting.
Showing this on npm start

‘nodemon’ is not recognized as an internal or external command, operable program or batch file.

I even checked my environment path.

I even ran npm install -g nodemon but it is still not working.

Also ran npm config get prefix but it is also not working.

Previously I ran this command npm config set bin-links false

after that problem started to occur.

Attaching some images for reference.

enter image description here : path screenshot

enter image description here : screenshot of vs code

2

Answers


  1. Chosen as BEST ANSWER

    Thank you it worked "silly" mistake.

    "npm config set bin-links true"

    and ran npm install it worked perfectly.

    Previously I ran this command but did not restart vs code so the error was thrown.


  2. If you told npm not to create any links to binaries in packages anymore, it’s no surprise that running linked binaries no longer works. (Why did you do that in the first place? Maybe there is a better way to achieve your goal?)

    Undo your config change (npm config set bin-links true) and reinstall nodemon.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search