Install Error: ERR! code ENOLOCK
### Current Situation

Installed on a fresh Mac Mini (Late 2012) with upgraded 8GB ram and SSD but got a few errors and not sure if I should ignore or be worried about the "9 vulnerabilities".

I've installed on my other M1 Mac Mini before without any issues and found the set up a walk in the park, so I'm not a total noob, but still new to dealing with terminal. :)

### Logs

```markdown
HomeServer:~ server$ node -v
v16.14.0
HomeServer:~ server$ npm -v
8.3.1
HomeServer:~ server$ sudo npm install -g --unsafe-perm homebridge homebridge-config-ui-x
Password:
npm WARN deprecated fastify-warning@0.2.0: This module renamed to process-warning
npm WARN deprecated class-transformer@0.3.2: This release contains a breaking change from 0.3.1 but otherwise functions properly. Please read the changelog on Github to learn more.

added 456 packages, and audited 457 packages in 57s

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

9 vulnerabilities (3 low, 1 moderate, 4 high, 1 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
npm notice 
npm notice New minor version of npm available! 8.3.1 -> 8.6.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.6.0
npm notice Run npm install -g npm@8.6.0 to update!
npm notice 
HomeServer:~ server$ npm install -g npm@8.6.0
npm ERR! code EACCES
npm ERR! syscall rename
npm ERR! path /usr/local/lib/node_modules/npm
npm ERR! dest /usr/local/lib/node_modules/.npm-i9nnxROI
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/npm' -> '/usr/local/lib/node_modules/.npm-i9nnxROI'
npm ERR!  [Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/npm' -> '/usr/local/lib/node_modules/.npm-i9nnxROI'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'rename',
npm ERR!   path: '/usr/local/lib/node_modules/npm',
npm ERR!   dest: '/usr/local/lib/node_modules/.npm-i9nnxROI'
npm ERR! }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/server/.npm/_logs/2022-04-07T11_55_42_592Z-debug-0.log
HomeServer:~ server$ npm audit fix --force
npm WARN using --force Recommended protections disabled.
npm ERR! code ENOLOCK
npm ERR! audit This command requires an existing lockfile.
npm ERR! audit Try creating one first with: npm i --package-lock-only
npm ERR! audit Original error: loadVirtual requires existing shrinkwrap file

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/server/.npm/_logs/2022-04-07T11_56_55_318Z-debug-0.log
HomeServer:~ server$  npm audit fix
npm ERR! code ENOLOCK
npm ERR! audit This command requires an existing lockfile.
npm ERR! audit Try creating one first with: npm i --package-lock-only
npm ERR! audit Original error: loadVirtual requires existing shrinkwrap file

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/server/.npm/_logs/2022-04-07T11_57_15_495Z-debug-0.log
HomeServer:~ server$
```


### Configuration

```json
Nil
```


### Environment

- OS: Catalina (10.15.7)
- Software: macOS
- Node: v16.14.0
- npm: v8.3.1


### Process Supervisor

not applicable

### Additional Context

_No response_