Programing/JavaScript

[react] npx create-react-app 에러 ENOENT -4058

미미믹 2024. 3. 14. 15:44

$ npx create-react-app todo-app

해당 명령어를 치니 에러만 뜨고 프로젝트 생성이 안된다..

혹시 내가 $ npm init 명령어를 C드라이브에서 실행하고
D 드라이브에서 명령어를 수행하려니 package.json 파일이 없어서 안되나 싶어서
상위 폴더에 가서 npm init 명령어도 수행해봤지만 결과는 동일했다.

검색해보니 create-react-app 재설치하면 된대서 해보니까 정상 동작했다

$ npm uninstall -g create-react-app
$ npm install -g create-react-app