Missing Script when I run npm start to create React app

前端 未结 9 1340
北荒
北荒 2021-01-01 18:20

I\'m trying to run the React server by running npm start

When I do this I get a missing script error:

λ npm start
npm ERR! missing scrip         


        
9条回答
  •  一个人的身影
    2021-01-01 18:54

    For me the problem was caused because npx create-react-app my-app was not triggering npm install due to lack of user permission. Please run :

    sudo npx create-react-app my-app
    

    Solves the problem.

提交回复
热议问题