执行npm run eject报错 应该是没装好git,或者装了但是没提交到仓库,解决方案如下: 先执行 git add . 后执行 git commit -m “init” 成功以后再npm run eject就没错了