Rocky 8 scopserv_yum update npm warn cli npm v10.9.1 does not support Node.js v16.8.0.

Rocky 8 scopserv_yum update npm warn cli npm v10.9.1 does not support Node.js v16.8.0.

If you see this error when doing a Rocky 8 scopserv_yum update

Updating   : scopserv-api-v3-8.0.12.0.20250206-1.el7.scopserv.x86_64                                                                                                                                   5/16 
npm warn cli npm v10.9.1 does not support Node.js v16.8.0. This version of npm supports the following node versions: `^18.17.0 || >=20.5.0`. You can find the latest version at https://nodejs.org/.
npm error Object.hasOwn is not a function
  Updating   : scopserv-api-events-8.0.0.9.20250206-1.el7.scopserv.x86_64                                                                                                                                6/16 
npm warn cli npm v10.9.1 does not support Node.js v16.8.0. This version of npm supports the following node versions: `^18.17.0 || >=20.5.0`. You can find the latest version at https://nodejs.org/.
npm error Object.hasOwn is not a function

Perform these steps:

rpm -e nodejs --nodeps
rpm -e npm --nodeps
scopserv_yum install nodejs

Verify update

npm -v

Verify service status

service scopserv_realtime fullstatus