Programming

node.js 16버전에서 18버전으로 바꾸기

seulye 2024. 9. 24. 16:34

 

 

https://github.com/coreybutler/nvm-windows/releases

 

Releases · coreybutler/nvm-windows

A node.js version management utility for Windows. Ironically written in Go. - coreybutler/nvm-windows

github.com

 

nvm-setup.exe를 다운로드하고 실행해준다. 

설치중에 이미 node가 설치되어 있다는 메세지가 뜨면 그냥 무시하고 install 해준다. 

 

nvm -v

 

터미널에 명령어를 입력하면 nvw 버전을 확인할 수 있다. 1.1.12 라고 떴다. 잘 설치 됨!!

 

 

nvm install 18
nvm use 18

 

나는 18버전을 설치해주었다. 

 

 

 

node -v

 

node 버전을 확인해 보면 18로 잘 바뀐걸로 보인다!

 

 

+ 버전업에 대한 오류

 

Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:69:19) at Object.createHash (node:crypto:133:10) at module.exports

(생략)

Node.js v18.20.4 npm notice npm notice New minor version of npm available! 10.7.0 -> 10.9.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.0 npm notice To update run: npm install -g npm@10.9.0 npm notice

 

16버전으로 수행했던 프로젝트 파일에서는

 

nvm use 16

 

다시 16으로 낮추어서 실행하기!

'Programming' 카테고리의 다른 글

프로젝트가 SSR인지 CSR인지 확인해보기  (1) 2024.11.12
SpringBoot와 React 연동하기  (0) 2024.09.27