Install
https://github.com/Schniz/fnm#using-a-script-macoslinux
curl -fsSL https://fnm.vercel.app/install | bash
Export to zshrc
export PATH=/root/.fnm:$PATH
eval "`fnm env`"
source ~/.zshrc
Install Nodejs
fnm install 18
https://github.com/Schniz/fnm#using-a-script-macoslinux
curl -fsSL https://fnm.vercel.app/install | bash
export PATH=/root/.fnm:$PATH
eval "`fnm env`"
source ~/.zshrc
fnm install 18