PROGRAMING/React

[REACT]Error: error:0308010C:digital envelope routines::unsupported

donghunl 2024. 3. 6. 04:52
반응형

 

npm start 시 위와 같은 에러가 난 경우 :

 

The Correct (safe) Solution (for npm users)

Use an up-to-date version of Node.js, and also use packages that are up-to-date with security fixes.

You can first try an update to see if that solves the problem:

npm update

If that is not enough, for many people, the following command will fix the issue:

npm audit fix --force

However, be aware that, for complex builds, the above command will pull in breaking security fixes that can potentially break your build.

 

아니면

 

In your package.json: change this line

"start": "react-scripts start"

to

"start": "react-scripts --openssl-legacy-provider start"

 

반응형

'PROGRAMING > React' 카테고리의 다른 글

[REACT] Form Validator  (0) 2024.03.06
[REACT] Dark mode Light mode toggle  (0) 2024.03.06
[REACT] React Router  (0) 2024.02.15
[REACT] What is React?  (0) 2024.02.10
[REACT] 'react-scripts' is not recognized  (0) 2024.02.10