Mac
Local upgrade has been installed NodeJs
and Npm
the latest version can be upgraded and updated with what way.
In fact, windos
the upgrade nodejs
is also very simple, just at nodejs
the official website to download and install the latest msi
can be.
It is noteworthy that the need to install the original nodejs
installation path to installation path can not be installed to a new path.
1. Node upgrade
step1: View the current native node
version
1 |
node -v |
step2: Clear nodejs
thecache
1 |
npm cache clean -f |
step3: Installation node
Management Toolsn
This tool is designed to manage nodejs
versions, you do not doubt the name of the tool, and his name is"n"
1 |
npm install -g n |
step4: install a different versionnodejs
2 . 3 . 4 . 5 . 6 . 7 . 8 . 9 10 . 11 |
|
step5: Again View node
version
1 |
node -v |
2. Update npm
to the latest version
1 |
altitude above sea level, install latest @ g |