2019. 11. 2. 21:46ㆍ카테고리 없음
npm start 에서 계속 아래와 같은 오류가 발생하면서 실행안됨
events.js:187
throw er; // Unhandled 'error' event
^
이거 참고해서 해결
downgrade the version of react-script from 3.0.1 to 2.1.8 and try npm install
Why npm start is throwing events.js:187 throw er; // Unhandled 'error' event in my react project?
While starting the server for the first time just after the code checkout , my react js project is throwing error "events.js:187 throw er; // Unhandled 'error' event" . I have node 12.13...
stackoverflow.com
-> 해결방법
커맨드창에 npm install react-script@2.1.8 입력 후 설치
다음 npm install
그 후 npm start
일단 성공
e:\React Project\book-app>npm start
> book-app@0.1.0 start e:\React Project\book-app
> react-scripts start
Compiled successfully!
You can now view book-app in the browser.
Local: http://localhost:3000/
On Your Network: http://192.168.0.3:3000/
Note that the development build is not optimized.
To create a production build, use yarn build.