Missing Script when I run npm start to create React app

前端 未结 9 1239
北荒
北荒 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:41

    Installing create-react-app globally is now discouraged. Instead uninstall globally installed create-react-app package by doing: npm uninstall -g create-react-app (you may have to manually delete package folder if this command didn't work for you. Some users have reported they had to delete folders manually)

    Then you can run npx create-react-app my-app to create react app again.

    ref: https://github.com/facebook/create-react-app/issues/8086

提交回复
热议问题