I was assigned a task to work on the front end of a react application but I have faced a very strange error. When I forked and cloned it on my machine, I ran npm i
for installing the necessary dependencies. After the installation was complete I ran the command npm start
in order to run the project on my machine and I was returned with an exception. The error message is attached with the question as well, Error Screenshot-1, ScreenShot-2. It said digital envelope routines are unsupported.
I searched for the question on Stackoverflow and also followed various instructions but nothing happened. Can someone tell me the solution to the problem and why it might be happening?
Currently, I am using node version 18.16.0.