npm run eject“Remove untracked files, stash or commit any changes, and try again.”错误

1.错误:

Remove untracked files, stash or commit any changes, and try again.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-app@0.1.0 eject: `react-scripts eject`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the react-app@0.1.0 eject script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


2. 原因
构造项目的时候出现git

 

 3. git add  .

4. git commit -m "up"

5. npm run eject




E:\react\admin>
E:\react\admin>npm run eject

 

 

posted @ 2021-05-18 14:02  李悠然  阅读(127)  评论(0编辑  收藏  举报