Thanks,
The pom of ui.frontend did not specify an node or npm version, but the root pom does have a specification for the frontend-maven-plugin to use node v12.22.7 and npm v 6.14.
However, when I downgrade my node and npm to these versions, I'm getting the same error as above.