This git repository has untracked files or uncommitted changes:
.idea/
src/
Remove untracked files, stash or commit any changes, and try again.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-demo@0.1.0 eject: `react-scripts eject`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-demo@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! C:\Users\15292\AppData\Roaming\npm-cache\_logs\2018-12-16T08_21_31_949Z-debug.log
执行npm run eject报错如上,应该是没装好git,或者装了但是没提交到仓库,解决方案如下:
先执行
git add .
后执行
git commit -m "init"
这都成功以后再npm run eject就没错了
后端啥都要会hhhh