View the Node version:

node -v

View the node installation location:

where node

Mac:

Core: Installs the N module that manages the NodeJS version

NPM cache clean -f // Clean the NPM cache NPM install -g n // Install the NPM module (used to manage nodeJS versions) n stable // Update the current system node to the latest stable version n LTS // Long-term supported version n Latest // Latest version N 10.14.2 // Upgrade to a specified versionCopy the code

No limited rights plus sudo

Windows:

⚠️ : Windows: You can only download the Windows installation package from the Node official website to overwrite the previous Node