首页 新闻 赞助 找找看

为什么create-react-app脚手架, npm run eject提示确认后,输入yes就报错了

0
悬赏园豆:15 [已关闭问题] 关闭于 2017-12-12 16:53

输入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>

MrZou的主页 MrZou | 菜鸟二级 | 园豆:300
提问于:2017-12-12 11:35
< >
分享
所有回答(1)
0

git配置目录不对

卡姆爱卡姆 | 园豆:202 (菜鸟二级) | 2018-04-24 11:52
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册