Click here to Skip to main content
15,441,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello i am not really sure how to explain my problem or how to ask for help.

But am going to try it anyway lately when i create a react app it installs like normal am using npx creat-react-app for that. But from the moment i use npm start i get this error (npm start error terminal). Which says it has nothing wrong with node js/npm so i suspected it was something about the react app dependency that was wrong. When i downgrade to a older version of react scripts it works but the newest version 16.13.1 doesn't work even tho i use this version of react on my windows laptop. In case it helps to solve my issue here is the error log that npm generates (error log npm) i hope this helps to solve my issue

What I have tried:

I tried reinstalling node, i tried removing the package-lock.json and removing the node modules than clearing the cache and reinstalling the modules using npm install
Posted
Updated 1-Apr-20 0:37am
Comments
Afzaal Ahmad Zeeshan 1-Apr-20 5:09am    
The error is on line 5 and 6. It comes from events.js. Pretty sure something is wrong with this configuration in your React app. Did you follow the steps as they were mentioned?
Jeroen De Vetter 1-Apr-20 5:17am    
yeah i did create a react app with the tutorial from react it self pretty sure that it was created on the right way

1 solution

I have found the solution for my problem by setting the path value for system32.
You can do this by the following steps
Goto > Control Panel\System and Security\System\Advance system setting\Enviroment variable and set system variables path C:\Windows\System32\ variable and restart your System.


After i have done these steps it seems to work
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900