[React] vulnerability 문제 / error:03000086:digital envelope routines::initialization error

2024. 3. 3. 20:45· Web Programming

79요..?

npm install react-icons를 했는데, 계속해서 이런 식으로 vulnerabilities 경고창이 떴다.

처음엔 6 vulnerabilities 였는데 어느 순간 79가 됐다..

​

역시 stack overflow

나랑 비슷한 오류가 나는 사람을 찾았다.

https://stackoverflow.com/questions/72489256/6-high-severity-vulnerabilities-in-react-icons-4-4-0

 

6 high severity vulnerabilities in react-icons 4.4.0

# npm audit report nth-check <2.0.1 Severity: high Inefficient Regular Expression Complexity in nth-check - https://github.com/advisories/GHSA-rp65-9cf3-cjxr fix available via `npm audit fix -...

stackoverflow.com

 

그리고 댓글에 있는 깃헙을 참조했다.

​

https://github.com/facebook/create-react-app/issues/11174

 

Help, `npm audit` says I have a vulnerability in react-scripts! · Issue #11174 · facebook/create-react-app

npm audit is broken for front-end tooling by design Bad news, but it's true. See here for a longer explanation. If you think you found a real vulnerability in react-scripts If you know that it affe...

github.com

 

여기에 다행히도

However, npm audit is designed for Node apps so it flags issues that can occur when you run actual Node code in production. That is categorically not how Create React App works.

This means that the overwhelming amount of "vulnerability" reports we receive for transitive dependencies are false positives. Despite literally a hundred issues with thousands of comments about npm audit warnings in react-scripts, throughout the years not a single one of them (to the best of our knowledge) has ever been a real vulnerability for CRA users.

This is a huge waste of everyone's time. Mostly of yours, but of ours too.

​

이렇게 쓰여있었다. 별 문제 없다는 것..!

​

근데 사실 이걸로 문제 해결은 못 했고

https://stackoverflow.com/questions/74726224/opensslerrorstack-error03000086digital-envelope-routinesinitialization-e

 

opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ]

opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' } I get...

stackoverflow.com

요걸로 해결했다.

​

계속해서 이런 식으로 오류가 났기 때문에

이게 아마 버전이 충돌해서 생기는 문제인 것 같다.

​

스택 오버플로우에 나와있는대로

​

Follow these steps on your terminal in the current app directory:

npm install -g npm-check-updates

​

Installs the npm-check-updates package globally for doing exactly what its name says.

ncu

​

This will display the dependencies side-by-side with (an arrow pointing to) their new versions (you are advised to upgrade to) as listed in your package.json file in the current directory.

ncu -u

​

This updates those new listed versions on your package.json file and prepares your app for the next step (the updates proper).

npm update

or

npm install

​

Either of these 2 finally installs the new updates; fixes the problem.

NB: I used

npm install

​

이렇게 하니 오류 없이 화면이 잘 나오는걸 확인할 수 있었다.

'Web Programming' 카테고리의 다른 글

[Java] 추상클래스와 인터페이스  (1) 2024.03.06
[JavaScript] 번들러(Bundler)란?  (0) 2024.03.03
[JavaScript] 조건 (삼항) 연산자  (0) 2024.03.03
[React] React state  (0) 2024.03.03
[JavaScript] 스코프 / 스코프 체인  (0) 2024.03.03
'Web Programming' 카테고리의 다른 글
  • [Java] 추상클래스와 인터페이스
  • [JavaScript] 번들러(Bundler)란?
  • [JavaScript] 조건 (삼항) 연산자
  • [React] React state
효딩
효딩
개ㄱ발은 기세다. 줄여서 객기.
hyoding개ㄱ발은 기세다. 줄여서 객기.
효딩
hyoding
효딩
전체
오늘
어제
  • 분류 전체보기 (245)
    • SKKU SW (30)
      • Computer Architecture (14)
      • Database (4)
      • Computer Network (3)
      • Operating System (7)
      • Mobile App Programming (2)
    • SuperCoding (68)
    • CS (8)
    • Web Programming (19)
    • Cloud (13)
    • Languages (45)
      • Python (8)
      • Java (37)
    • Supporters (8)
      • MoteMote (6)
      • NHN Cloud (2)
    • Certification (27)
      • Network Advisor (14)
      • ADsP (10)
      • Engineer Information Proces.. (3)
    • Finance (9)
      • 경제금융용어 (3)
    • Woori FISA (14)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • 네트워크관리사2급 필기
  • 네트워크관리사
  • 우리fis아카데미
  • 우리FISA
  • 글로벌소프트웨어캠퍼스
  • 네트워크관리사 합격
  • 앱개발
  • 인프라개발
  • rds local 접속
  • 서버생성
  • K-디지털트레이닝
  • apppaas
  • nhn cloud
  • 봐
  • 네트워크관리사2급 공부방법
  • 네트워크관리사 커트라인
  • 서버배포
  • Kotlin
  • 클라우드서비스개발
  • 인프라
  • 코틀린
  • 우리에프아이에스
  • 클라우드 서비스
  • 코틀린문법
  • 네트워크관리사2급
  • 클라우드
  • AWS
  • 서버개발
  • 네트워크관리사 후기
  • 네트워크관리사 준비물

최근 댓글

최근 글

hELLO · Designed By 정상우.v4.2.2
효딩
[React] vulnerability 문제 / error:03000086:digital envelope routines::initialization error
상단으로

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.