Open sd4-github opened 1 year ago
https://www.freecodecamp.org/news/node-version-manager-nvm-install-guide/
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
https://www.geeksforgeeks.org/how-to-update-node-js-and-npm-to-next-version/
soumikd4@soumik-lenovo:~$ nvm -v 0.39.1 soumikd4@soumik-lenovo:~$ nvm install node Downloading and installing node v20.5.0... Downloading https://nodejs.org/dist/v20.5.0/node-v20.5.0-linux-x64.tar.xz... ###################################################################### 100.0% Computing checksum with sha256sum Checksums matched! Now using node v20.5.0 (npm v9.8.0) Creating default alias: default -> node (-> v20.5.0) soumikd4@soumik-lenovo:~$ node -v v20.5.0 soumikd4@soumik-lenovo:~$ npm -v 9.8.0 soumikd4@soumik-lenovo:~$ npm install -g npm changed 24 packages in 3s 28 packages are looking for funding run `npm fund` for details soumikd4@soumik-lenovo:~$ npm -v 9.8.1 soumikd4@soumik-lenovo:~$
install nvm, then upgrade node & npm by nvm
https://www.freecodecamp.org/news/node-version-manager-nvm-install-guide/
https://www.geeksforgeeks.org/how-to-update-node-js-and-npm-to-next-version/