0

When I run npm start in vs code terminal this error occurs and the browser says

This site can’t be reached

error screenshot browser error

This error occurred after using these commands :

  • npm i -g react-scripts
  • npm install react-scripts --save
  • npm install
  • del node_modules && npm install

package.json

Ahmed Sbai
  • 10,695
  • 9
  • 19
  • 38
Mayur
  • 1
  • 1

1 Answers1

0

Duplicate question!

I think you will find your solution in this link:

Error message "error:0308010C:digital envelope routines::unsupported"

Runejm
  • 61
  • 4
  • this link is not useful – Mayur May 23 '23 at 14:24
  • Hmm, I am having difficulties replicating your error. Have you tried deleting the "package-lock.json" and the "node_modules" folder? followed by: 1) run: npm install 2) run: npm start – Runejm May 23 '23 at 18:31
  • Yes, I have tried, but the error is still there – Mayur May 24 '23 at 08:02
  • Is it possible for you to upgrade to latest NodeJS version (e.g.: Version 18.16.0)? It might be a npm cache error, so if upgrading the NodeJS, isn't a possibility try clearing your cache: Guide: https://coder-coder.com/npm-clear-cache/ – Runejm May 24 '23 at 08:10
  • I upgraded the NodeJS version to 18.16.0. Still, it doesn't work. – Mayur May 24 '23 at 12:03
  • did you clear the cache? 1) run: npm cache clean --force 2) run: npm install – Runejm May 24 '23 at 12:12
  • Yes I did but the problem still persists – Mayur May 24 '23 at 15:18
  • I created new project and pasted my code here and created new package.json, package-lock.json,node_modules files and the project is working perfectly fine. – Mayur May 24 '23 at 15:24
  • Well, I am glad to hear something helped! – Runejm May 24 '23 at 15:51