카테고리 없음

[react] sh: react-scripts: command not found 오류 해결

냐옴 2023. 1. 4. 14:47

 

npm start 실행시 오류가 발생

$ npm start

> demo-proj@0.1.0 start
> react-scripts start

sh: react-scripts: command not found

 

npm install react-scripts 를 실행해 준다

# 실행하면 node_modules 폴더가 생성된다
$ npm install react-scripts

 

다시 npm start 를 실행한다

$ npm start