[React에러] Error: ENOENT: no such file or directory, uv_cwd
2023. 4. 15. 20:26ㆍReact 공부
728x90
SMALL
어제까지 잘 됐는데 갑자기 에러라고??
npm start 명령어를 실행하려고하는 데 뜬 에러이다.
( npm install 명령어 실행할때도 이와 같은 에러가 뜰 수 있다고 한다. )
⬇︎⬇︎⬇︎⬇︎ 해결부터 하자는 생각에 에러를 캡쳐하지 못해서 다른 사람 에러를 가져왔다 ⬇︎⬇︎⬇︎⬇︎
cachedCwd = rawMethods.cwd();
^
Error: ENOENT: no such file or directory, uv_cwd
at process.wrappedCwd [as cwd] (internal/bootstrap/switches/does_own_process_state.js:128:26)
at setopts (/home/sri/.nvm/versions/node/v12.18.4/lib/node_modules/npm/node_modules/glob/common.js:93:21)
at new Glob (/home/sri/.nvm/versions/node/v12.18.4/lib/node_modules/npm/node_modules/glob/glob.js:135:3)
at Function.glob.hasMagic (/home/sri/.nvm/versions/node/v12.18.4/lib/node_modules/npm/node_modules/glob/glob.js:101:11)
at Function.rimrafSync [as sync] (/home/sri/.nvm/versions/node/v12.18.4/lib/node_modules/npm/node_modules/rimraf/rimraf.js:281:36)
at process.<anonymous> (/home/sri/.nvm/versions/node/v12.18.4/lib/node_modules/npm/node_modules/libnpx/index.js:151:37)
at process.emit (events.js:315:20) {
errno: -2,
code: 'ENOENT',
syscall: 'uv_cwd'
}
내 에러도 이렇게 떴고, 처음 접하는 에러에 구글링 부터 시작!
구글링 하자마자 뜬 벨로그를 통해 한번에 에러 해결을 할 수 있었다.
해결 방법
" 터미널을 껐다 켜보자!"
> 정말..?
Ctrl+C 로 다시 했을 때는 되지 않았는데, 터미널을 껐다 켠다고 이게 돼? 라는 생각으로 했는데 된다!
혹시 나와 같은 에러가 있다면 한번 해보길ㅎㅎ
너무 손쉽게 해결해서 당황스럽지만 또 발생할 수 있으니 기록해두자
* 참고 사이트
728x90
LIST
'React 공부' 카테고리의 다른 글
[RN] 에러해결 Invariant Violation: Module AppRegistry is not a registered callable module. (0) | 2023.03.03 |
---|---|
[RN] FormData 트러블 슈팅 - RNMIP 사용법 (0) | 2023.02.26 |
[RN] Tried to register two views with the same name 에러해결 (0) | 2023.02.22 |
[RN] run android 에러 (0) | 2023.02.11 |
[RN] 에러 안드로이드 스튜디오 연결안됨 npm run android 에러 (0) | 2023.02.10 |