undo 'npm run eject' in react

后端 未结 3 1326
自闭症患者
自闭症患者 2021-02-01 17:55

I was trying to test the performance of my React app(created with create-react-app) with react CDN script and i did \'npm run eject\' to add webpack ex

3条回答
  •  盖世英雄少女心
    2021-02-01 18:24

    Deletion and then npm install method mentioned is correct. However, if you are using git (or just any version control), just do:

    git checkout -- .
    

    or:

    git stash
    

提交回复
热议问题