create-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!

解決方案:

第一步:提交未提交的文件 

git add 未提交的文件

第二部:

git commit -m "init"

第三部:npm run eject

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章