본문 바로가기
> IT 노트/에러

[React] 'react-scripts'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.

by 자몽주스 2024. 4. 11.
728x90
반응형

참고)  https://devbirdfeet.tistory.com/3

 

React 실행오류 - npm ERR! code ENOENT(errno -4058)

Updated 21/07/30 문제상황 " npm ERR! code ENOENT(errno -4058) " React를 실행하기 위해 visual studio 터미널창에 npm run start를 입력하니 4058로 시작하는 에러가 나왔다. path를 살펴보니 설치시 지정한 경로와 달랐

devbirdfeet.tistory.com

1) 문제 프로젝트에 react-script 설치 - 터미널 열고 복붙해줬음

- npm) 

npm install -save react-scripts

- yarn)

yarn add react-scripts

 

여까지 복붙해주니 뜨는거 확인됨.

2) 전역으로 react-scripts 라이브러리 설치하기

- npm) 

npm install -g react-scripts

- yarn)

yarn add global react-scripts

3) 패키지 매니저 (yarn, npm) 업데이트

- npm) 

npm update
npm start

- yarn)

yarn upgrade
yarn start

 

728x90
반응형

'> IT 노트 > 에러' 카테고리의 다른 글

[node.js] npm ERR! code ENOENT  (0) 2024.04.10