I think the issue with the npm issue is related to the node/npm version.
I had a similar problem with a very similar error on one system, but it
worked fine on another - the only difference was the node installation.
The failing system had node 17.01...