Remove untracked files, stash or commit any changes, and try again.
程序员文章站
2022-05-13 21:25:30
...
Remove untracked files, stash or commit any changes, and try again.
很久之前就遇到过这个问题,如今又遇到了,随手一记,以防忘记
creact-react-app 构建项目之后,npm run eject 暴露项目配置会报如下错误:
Remove untracked files, stash or commit any changes, and try again.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] eject: `react-scripts eject`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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! /Users/liuzhenchao/.npm/_logs/2018-11-08T03_06_12_005Z-debug.log
这是git地址有问题,解决方法
git add .
git commit -am "Save before ejecting"
npm run eject
本文纯手打,有不当之处请留言!如果对小伙伴们有帮助的话,点赞啊,谢谢!