LANGUAGE/React
[React] npm start 오류 / npm start 명령어 안됨
31daylee
2024. 5. 29. 10:12
728x90
🚨상황
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\User\OneDrive\바탕 화면\Study_React\package.json
npm ERR! errno -4058
npm ERR! enoent Could not read package.json: Error: ENOENT: no such file or directory, open 'C:\Users\User\OneDrive\바탕 화면\Study_React\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
원인
npm start의 폴더 대상 문제
> start하는 경로가 잘못됨
해결법
"cd 폴더이름"
와 같은 명령어로 폴더 지정 후 npm start를 다시 해주니 실행이 되었다.
728x90