npm run eject 报错
原创
©著作权归作者所有:来自51CTO博客作者wx62eb7326068f3的原创作品,请联系作者获取转载授权,否则将追究法律责任
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,或者装了但是没提交到仓库,解决方案如下:
先执行
后执行
这都成功以后再npm run eject就没错了
后端啥都要会hhhh