执行指令:D:\react\myapp>npm run eject
报错信息如下:
NOTE: Create React App 2+ supports TypeScript, Sass, CSS Modules and more without ejecting: https://reactjs.org/blog/2018/10/01/create-react-app-v2.html
? Are you sure you want to eject? This action is permanent. Yes
This git repository has untracked files or uncommitted changes:
src/App.js
src/components/A.js
src/components/B.js
src/components/C.js
Remove untracked files, stash or commit any changes, and try again.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! myapp@0.1.0 eject: `react-scripts eject`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the myapp@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\lennovo\AppData\Roaming\npm-cache\_logs\2019-06-23T02_01_34_386Z-debug.log
执行如下命令
git commit -m "init"
D:\react\myapp>git commit -m "init"
结果如下: