[React] npm error code ENOENT
·
공부
npm start를 작성하니 나온 에러다.package.json이 있는 위치가 아니라 다른 곳에서 npm start를 실행했기 때문에 나온 에러다. package.json이 있는 곳으로 터미널 경로를 옮겨주고 npm start를 실행하면 정상 작동된다.
[React] Module not found: Error: Can't resolve 'web-vitals'
·
공부
아무런 코드 추가 없이 기본 react 설치 후 npm start를 하니 해당 오류 발생 패키지가 꼬여서 발생한 문제npm i web-vitals --save-dev 명령어를 통해 패키지를 없는 패키지를 다운받으니 문제 해결. 혹은 모듈을 전부 다시 받아도 해결된다고 합니다. https://stackoverflow.com/questions/65396568/react-js-npm-start-shows-failed-to-compile-web-vitals React JS npm start shows failed to compile web-vitalsI'm getting the error: failed to compile -/src/reportWebVitals.js Module not found: Can't r..