create-react-app
create-react-app copied to clipboard
events.js:292 throw er; // Unhandled 'error' event
i follow
yarn global add [email protected] create-react-app confusion yarn start then got error "events.js:292 throw er; // Unhandled 'error' event"
please sir solve these error I am facing these error many times on my laptop windows 8.1 dell
@Satyam62 Open Nodejs Command Prompt from search options and Run react-scripts start. It should work
It is not working in my react when I run >npm run json-server then I install concurrently by running the two our more code at the same time
E:\project-you\youapp>npm run json-server
[email protected] json-server E:\project-you\youapp json-server --watch db.json --port 3001
{^_^}/ hi!
Loading db.json Done
Resources http://localhost:3001/posts http://localhost:3001/comments http://localhost:3001/profile
Home http://localhost:3001
Type s + enter at any time to create a snapshot of the database Watching...
I am facing the same problem. I followed npx create-react-app myapp cd myapp npm start
Add path variable of your system It will be solved
Added path variable of system still facing the same issue.
I have the same problem....
Add path variable of your system It will be solved
what should we add as path variable pls write here
This problem is only present with [email protected], downgrading to [email protected] resolved the issue. TRY THIS
create-react-app my-app
cd my-app
npm install [email protected]
npm start
i follow
yarn global add [email protected] create-react-app confusion yarn start then got error "events.js:292 throw er; // Unhandled 'error' event"
please sir solve these error I am facing these error many times on my laptop windows 8.1 dell
I have same problem , have you fixed it?
Thanks @rutikwankhade this worked for me @paridhinigam10 try this yarn global add create-react-app create react app confusion yarn start This works for react scripts 3.0 and above
This problem is only present with [email protected], downgrading to [email protected] resolved the issue. TRY THIS
create-react-app my-app cd my-app npm install [email protected] npm start
Thanks, man! seriously I got frustrated I've tried many solutions but finally worked this for me. 👍
Thanks a lot bro... i m trying last three days i gonna hopeless then i find that post finally i fixed that bug by using this post
3.1.4 react script has same problem
Thanks @rutikwankhade this worked for me @paridhinigam10 try this yarn global add create-react-app create react app confusion yarn start This works for react scripts 3.0 and above
thanks man finally my react app running
If someone stumbles upon this in the search for a fix they might find this article useful: https://peterthaleikis.com/posts/how-to-fix-throw-er-unhandled-error-event That's how it got solved it for me...
This problem is only present with [email protected], downgrading to [email protected] resolved the issue. TRY THIS
create-react-app my-app cd my-app npm install [email protected] npm start
worked! Thanks!
Hi. This is no react-related problem. I see the same error with a minimal node.js express + redis example app ! events.js:292 throw er; // Unhandled 'error' event
I have encountered this error and I fix it with the link below: https://stackoverflow.com/a/60845088/10488304
Anyone, please help me resolve this. I tried to fix it with the help of the above-mentioned solutions. But it didn't resolve.
events.js:292 throw er; // Unhandled 'error' event ^
ReferenceError: error is not defined at C:\Users\HP\Desktop\visualstudio_code\expressjs\mdata.js:41:15 at C:\Users\HP\Desktop\visualstudio_code\expressjs\node_modules\mongoose\lib\model.js:4845:18 at processTicksAndRejections (internal/process/task_queues.js:75:11) Emitted 'error' event on Function instance at: at C:\Users\HP\Desktop\visualstudio_code\expressjs\node_modules\mongoose\lib\model.js:4847:15 at processTicksAndRejections (internal/process/task_queues.js:75:11)
I solved it by changing the port(from 3000 to 3001)
npm install will do the trick.
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
Adding the following environment variable to the command or the .env file also worked :
cd my-app BROWSER=none npm start
if it's Windows: set BROWSER=none&& npm start
