[Error Note] Vue.js : ERR_OSSL_EVP_UNSUPPORTED [Node.js와 OpenSSL 간의 호환성 문제]
·
◈ Study/에러노트(Error Note)🧱
- Vue.js : ERR_OSSL_EVP_UNSUPPORTED예전에 공부했던 Vue.js를 복습하려고 npm run build를 했더니 아래와 같은 에러가 발생하였다.더보기npm run build> response-check@1.0.0 build> webpack --watch webpack is watching the files…node:internal/crypto/hash:79this[kHandle] = new _Hash(algorithm, xofLen, algorithmId, getHashCache());Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:79:19) at ..
[Node.js] 자바스크립트에서 날짜 format 쉽게 지정하기 [Day.js로 날짜 간편하게 다루기]
·
◎ JavaScript/Node.js🫒
- 자바스크립트에서 날짜 format 쉽게 지정하기npm install dayjsconst dayjs = require('dayjs');// 오늘 날짜console.log(dayjs().format('YYYY-MM-DD')); // 2025-04-18// 날짜 덧셈console.log(dayjs().add(7, 'day').format('YYYY-MM-DD')); // 7일 후// 날짜 비교console.log(dayjs('2025-01-01').isBefore('2025-04-01')); // true// 불변성 확인const a = dayjs();const b = a.add(1, 'day');console.log(a.format('YYYY-MM-DD')); // 변경 없음console.log(b.fo..