输入npm run eject
E:\extract\node\projectGit\job-hunt-app>npm run eject
> job-hunt-app@0.1.0 eject E:\extract\node\projectGit\job-hunt-app
> react-scripts eject
提示确认输入 y (yes)
? Are you sure you want to eject? This action is permanent. Yes
然后就报错了,
报错如下,删除了idea这个文件夹再执行也还是一样,不知道为什么 ,有没有同学遇到过这种情况,第一次用这个脚手架,就碰壁,好心塞。。。
This git repository has untracked files or uncommitted changes:
M .idea/job-hunt-app.iml, A .idea/jsLibraryMappings.xml, A .idea/librarie
s/job_hunt_app_node_modules.xml, M .idea/misc.xml, A .idea/watcherTasks.xml,
M .idea/workspace.xml, M package.json, M src/App.js
Remove untracked files, stash or commit any changes, and try again.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! job-hunt-app@0.1.0 eject: `react-scripts eject`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the job-hunt-app@0.1.0 eject script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2017-12-12T0
3_18_15_677Z-debug.log
E:\extract\node\projectGit\job-hunt-app>
git配置目录不对