sh: react-scripts: command not found

Volc·2022년 4월 5일
0

Error

목록 보기
27/62

Error

  • github에서 react가 있는 폴더를 pull을 하여 npm start 명령어를 실행하였지만 script가 없어 실행이 불가능하다고 다음과 같은 에러가 나왔다.
    > test@0.1.0 start
    > react-scripts start
    
    sh: react-scripts: command not found

Error 해결

  • 다음 명령어를 실행하여 node_modules를 만들어줌
    npm add react-scripts
    
    or
    
    npm install -save react-scripts

참고 사이트

[오류] /bin/sh: react-scripts: command not found

profile
미래를 생각하는 개발자

0개의 댓글