작성
·
464
1
git 수행후 eject를 수행하니 다음과 같은 에러가 나옵니다.
git 를 처음 사용해봐서 그런지요. 지난번 수행 후 처음 해서
....
> client@0.1.0 eject D:\blog\client
> react-scripts eject
NOTE: Create React App 2+ supports TypeScript, Sass, CSS Modules and more without ejecting: https://reactjs.org/blog/2018/10/01/create-react-app-v2.html
? Are you sure you want to eject? This action is permanent. Yes
Ejecting...
`config` already exists in your app folder. We cannot continue as you would lose all the changes in that file or directory. Please move or delete it (maybe make a copy for backup)
and run this command again.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! client@0.1.0 eject: `react-scripts eject`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the client@0.1.0 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! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-09-03T07_00_59_600Z-debug.log
PS D:\blog\client>
답변 2
0
2020. 09. 04. 10:00
고맙습니다. 생각보다 설치 과정이 복잡하네요. 경고 메시지도 많이 나오고요. 현재도 노드 모듈 에러가 나오고 있는데요. 좀더 진행 후에 점검을 하려 합니다. 수고하세요.
0
2020. 09. 03. 23:04
Ejecting...
`config` already exists in your app folder. We cannot continue as you would lose all the changes in that file or directory. Please move or delete it (maybe make a copy for backup)
=> 여기보면 이미존재하는 config폴더를 삭제해보라고 나옵니다. (아마도 eject를 2번하셔서 첫번째 eject되다 남은 부분이 있어서 그런것 같습니다)