Remove untracked files, stash or commit any changes, and try again.

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wust_cyl/article/details/84800684

使用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! [email protected] eject: `react-scripts eject`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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"

然后再试一次,嘿嘿 :)

猜你喜欢

转载自blog.csdn.net/wust_cyl/article/details/84800684