PM2 won't install -- how do I troubleshoot?

changed directory, removed the node_modules directory recursively.
executed npm install while still in that directory.

Result:
cursor has been spinning for over 10 minutes.
opening a separate ssh session, I can see that the node_modules folder has been recreated with a pm2 subdirectory inside of it. Contents of that folder are:

# ls
ADVANCED_README.md  bin  CHANGELOG.md  constants.js  CONTRIBUTING.md  GNU-AGPL-3.0.txt  index.js  lib  LICENSE  Makefile  package.json  paths.js  README.md

So its definitely doing SOMETHING, but it’s still spinning forever and not completing.
Additional steps taken since last post:

fwconsole ma remove pm2
fwconsole ma remove (two other modules that I noticed were installed but disabled and dependent upon pm2)

Also, used FreePBX GUI module admin to update all other modules successfully.
Then attempted to do so with pm2, but it just hung forever.
Followed the failed attempt with another fwconsole ma remove pm2
(then saw your updated post, and followed your instructions)