Updating Node.js to latest version

I tried updating Node.js to the latest version and it gave me this,

 npm install n latest
npm WARN [email protected] requires a peer of chart.js@^2.7.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of better-sqlite3@^7.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-native@^0.56.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

+ [email protected]
+ [email protected]
updated 4 packages and audited 1407 packages in 13.108s

71 packages are looking for funding
  run `npm fund` for details

found 184 vulnerabilities (6 low, 47 moderate, 111 high, 20 critical)
  run `npm audit fix` to fix them, or `npm audit` for details