How to Enable openSSL Legacy Mode

--- title: 'How to Enable openSSL Legacy Mode' author: "Hun Im" date: 2024-10-30T14:26:25+09:00 category: ['POSTS'] tags: ['Javascript', 'Node.js'] og_image: "/images/gamer.png" keywords: ['Javascript', 'Node.js'] --- After upgrading Node.js, you may encounter errors when loading scripts. If you’re seeing openSSL errors, try enabling legacy mode as follows: ``` export NODE_OPTIONS=--openssl-legacy-provider "scripts": { "build": "NODE_OPTIONS=--openssl-legacy-provider webpack --mode production" } ```
Β 
--- title: 'openSSL λ ˆκ±°μ‹œλͺ¨λ“œ ν™œμ„±ν™” 방법' author: "μž„ν›ˆ" date: 2024-10-30T14:26:25+09:00 category: ['POSTS'] tags: ['Javascript', 'Node.js'] og_image: "/images/gamer.png" keywords: ['Javascript', 'Node.js'] --- node.js 버전업 이후에, 슀크립트λ₯Ό 뢈러올 λ•Œ, μ—λŸ¬κ°€ 뜰 λ•Œκ°€ μžˆλ‹€. openSSL μ—λŸ¬κ°€ λ‚  λ•ŒλŠ”, λ ˆκ±°μ‹œλͺ¨λ“œλ₯Ό ν™œμ„±ν™” ν•΄λ³΄μž. ``` export NODE_OPTIONS=--openssl-legacy-provider "scripts": { "build": "NODE_OPTIONS=--openssl-legacy-provider webpack --mode production" } ```