Ubuntu20 upgrade nodejs version

grunt buildWhen executing, it prompts that the node version is too low.
insert image description here
The current version is 10.19.0, which does not meet the requirements

  1. Install n, used to update the node version
sudo npm install n -g

insert image description here

  1. Download the latest stable version of nodejs with n
sudo n stable

insert image description here
3. After the installation is complete, node -rcheck the current version
insert image description here

Guess you like

Origin blog.csdn.net/qq_41159191/article/details/130546970