node version 10 code example
Example 1: update nodejs mac
sudo npm cache clean -f
sudo npm install -g n
sudo n stable/lts
Example 2: nextjs version 10
npm install next@latest
//upgrage from v9 to v10
sudo npm cache clean -f
sudo npm install -g n
sudo n stable/lts
npm install next@latest
//upgrage from v9 to v10