sh: react-scripts: command not found

892 단어 npmReactReact

Error

  • github에서 react가 있는 폴더를 pull을 하여 npm start 명령어를 실행하였지만 script가 없어 실행이 불가능하다고 다음과 같은 에러가 나왔다.
    > [email protected] 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

좋은 웹페이지 즐겨찾기