Npm ci Segmentation fault

I’m building the gateway on raspberry pi desktop os. I’ve gotten through everything but when I run nmp ci to install the dependencies I get a segmentation fault. It seems it’s faulted in more than one place because I’ve gotten the fault with different messages after. How do I fix this?

See this conversation a couple days ago for a node/npm related segmentation fault. Can’t help on the root cause other than to say it could be npm/nvm versions are not linked correctly.

How would I get the versions to link correctly? I’m not using a raspberry pi. I’m using a desktop running raspberry pi desktop os.