작성일
20240117
인텔리제이에서 스프링부트 프로젝트에 리액트를 설치하기 위해 npx create-react-app 폴더명
을 입력하였더니 아래와 같은 에러 메세지가 발생했다.
PS C:\Users\스프링부트 프로젝트 파일경로
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:\Users\USER\AppData\Roaming\npm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\USER\AppData\Roaming\npm'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in: C:\Users\USER\AppData\Local\npm-cache\_logs\2023-07-26T07_43_03_676Z-debug-0.log
이러한 이슈가 발생했을 때 해결하는 방법이 적힌 타 블로그의 링크를 아래에 달아두었다. 해당 방법으로 해결되었다면 예정대로 다시 npx create-react-app 폴더명
을 인텔리제이 터미널 창에서 입력해주면 된다.
[BLOG]
npm ERR! path 에러 해결
https://velog.io/@jhcha/typescript-npm-ERR-path-%EC%97%90%EB%9F%AC-%ED%95%B4%EA%B2%B0
[BLOG]
React You are runningcreate-react-app
5.0.0, which is behind the latest release (5.0.1) error
https://believecom.tistory.com/768