Error Deploying a new version of my site

I switched my site to a new version in a new github repo. The site is built in angular and works locally. Public github repo: GitHub - randomgeekdom/terramachinav2: A new version of Terra Machina RPG site (based on angular). On netlify, I get the error pasted below on deploy on the ngcc step.

3:50:23 PM: > ngcc

3:50:23 PM: (node:1383) ExperimentalWarning: The ESM module loader is experimental.

3:50:24 PM: file:///opt/build/repo/node_modules/@angular/compiler-cli/bundles/ngcc/main-ngcc.js:13657

3:50:24 PM: import { decode, encode } from “sourcemap-codec”;

3:50:24 PM: ^^^^^^

3:50:24 PM: SyntaxError: The requested module ‘sourcemap-codec’ does not provide an export named ‘decode’

3:50:24 PM: at ModuleJob._instantiate (internal/modules/esm/module_job.js:92:21)

3:50:24 PM: at async (internal/modules/esm/module_job.js:107:20)

3:50:24 PM: at async Loader.import (internal/modules/esm/loader.js:179:24)

3:50:24 PM: npm ERR! code ELIFECYCLE

3:50:24 PM: npm ERR! errno 1

3:50:24 PM: npm ERR! terra-machina@2.0.5 postinstall: ngcc

3:50:24 PM: npm ERR! Exit status 1

3:50:24 PM: npm ERR!

3:50:24 PM: npm ERR! Failed at the terra-machina@2.0.5 postinstall script.

3:50:24 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

3:50:24 PM: npm ERR! A complete log of this run can be found in:

3:50:24 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-01-30T21_50_24_093Z-debug.log

3:50:24 PM: Error during NPM install

3:50:24 PM: Build was terminated: Build script returned non-zero exit code: 1

3:50:24 PM: Creating deploy upload records

3:50:24 PM: Failing build: Failed to build site

3:50:24 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 1

3:50:24 PM: Finished processing build request in 57.28447914s

Hey there, @randomgeekdom :wave:

Sorry you are having trouble with your build.

This Support Guide contains a ton of useful debugging tips that can likely help you solve your problem :slight_smile: Additionally, this Support Guide houses all of our resources for debugging build and deploy issues.
We also recommend trying to search the forums with the build error you encountered - it’s likely your question was already asked by someone else!

If you are still having problems, please provide as much information as you can on what you have already tried, what your build settings are, your package.json, a full and formatted copy of your deploy log, etc. Thanks!