Search code examples
reactjsnodemon

Showing error while running nodemon server.js


I have installed nodemon using these commands

npm install nodemon

npm installed successfully,

after running nodemon server.js showing error

'react-scripts' is not recognized as an internal or external command,
operable program or batch file.
[nodemon] app crashed - waiting for file changes before starting...

Solution

  • Perhaps could you try installing and saving the react-scripts dependency and seeing if this resolves your issue:

    npm i -S react-scripts
    

    Hopefully that helps!