Search code examples
javascriptreactjsnpmnpm-installcreate-react-app

Issue in `npm start` command in react.js


I am trying to install React.js. In this regard, I run npm install -g create-react-app and create-react-app my-app. Then I run the npm start command but I am getting below error.

enter image description here


Solution

  • Please delete folder node_modules and clean npm cache

    npm cache clean -f
    

    Also try remove package-json.lock file.

    After this re-run your command.