no such file or directory, open 'D:\react\package.json'
vs code에서 npx create-react-app 프로젝트이름 을 입력한 뒤 App.js에서 npm run start를 누르자, 위와 같은 경고문이 등장했다. 이 경우에는 다음과 같은 명령문을 터미널에 입력해주면 된다.
cd 프로젝트명
npm start
그러면 오류가 해결 되고
제대로 리액트가 실행된다.
'Javascript > React' 카테고리의 다른 글
[React.js] 파일 구성 살펴보기 (0) | 2023.02.04 |
---|---|
[React]visual studio code에서 현재 파일 경로로 터미널 여는 방법 (0) | 2023.01.12 |
[React 오류 해결]Cannot create a project named "react" because a dependency with the same name exists. (0) | 2023.01.12 |
[React 오류해결] Module not found: Can't resove 'react-beautiful-dnd' (1) | 2023.01.12 |
[React 기초]React 설치 하기 (0) | 2023.01.09 |