728x90
반응형
리액트 npx create-react-app 명령어 입력 시 에러 발생
리액트 프로젝트를 CRA(create-react-app) 방법으로 생성하려고 npx create-react-app mall 명령어를 입력했는데 npm ERR! code ENOENT... 에러 발생
관련 에러 코드
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:\Users\lemon\AppData\Roaming\npm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\lemon\AppData\Roaming\npm'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
에러 해결 방법
1. create-react-app 제거
npm uninstall -g create-react-app
2. create-react-app 재설치
npm install -g create-react-app
3. create-react-app 재실행
npx create-react-app mall
리액트 프로젝트가 CRA 방식으로 정상적으로 설치된 것을 확인하실 수 있습니다.
728x90
반응형
댓글