1. curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
2. sudo apt-get install nodejs3. install nvm
4. nvm -v
5. nvm list-remote
6. nvm install v18.12.1 (version choose form list just )
7. npm install --global yarn
To remove node js
1. sudo su
2. apt remove node
0 Comments