使用creat-react-app创建一个项目,当运行npm run eject时报错了???
Remove untracked files, stash or commit any changes, and try again.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! my-app@0.1.0 eject: `react-scripts eject`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the my-app@0.1.0 eject script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! E:\NodeJs\node_cache\_logs\2018-12-04T15_10_57_575Z-debug.log
懵逼了。。。
不慌执行俩行代码
git add .
git commit -am "Save before ejecting"
然后再试一次,嘿嘿 :)