I tried the "node-gyp": "10.0.1", "nan": "2.18.0" suggestion from another user but that didn't work for me. I ended up downgrading to 18.20.6 and it got passed the error.
So if you don't need to be on a newer version of node just change to an older version.