Command failed with exit code 127 / react-scripts: command not found 에러 해결 방법

Syd·2022년 8월 30일
0

에러노트

목록 보기
2/4

react 에서 CRA(create react-app)로 프로젝트를 실행할때,
종종 yarn start 해도 웹페이지가 실행되지 않는 문제가 발생했다.

에러 메세지는 아래와 같다.

Command failed with exit code 127
react-scripts: command not found

구글링 결과 아래와 같은 세가지 방법이 있었다.

1) yarn install
2) npm install
3) npm update

순서대로 yarn 명령어부터 실행해 봤는데 여전했고,
npm install도 마찬가지였다.
마지막 3번 npm updatenpm start 하니 정상적으로 렌더링 되었다.

profile
Slow and steady wins the race 🐢

0개의 댓글