Vọc nodejs

//install node version manager curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

// check version node –version

// list remote nvm list-remote

// list installed versions of node (via nvm) nvm ls

// install specific version of node nvm install v14.20.1

// set default version of node nvm alias default v14.20.1

// switch version of node nvm use v14.20.1

// https://stackoverflow.com/questions/66434750/npm-err-git-dep-preparation-failed-when-trying-to-install-package-json

npm cache clean –force rm -rf node_modules && rm package-lock.json npm install –legacy-peer-deps