Welcome, @amanzella. Before digging in to that specific error, is your goal to build the node-api server or something else? This Dockerfile is another point of reference for building the project and running it as a node-api (web app server and API): ziti-console/Dockerfile at main · openziti/ziti-console · GitHub
Are these the same build steps you are following to build ziti-console-lib? GitHub - openziti/ziti-console
Which version of Node.js are you using?
edit: a user reported a build problem with the main branch, and I confirmed the latest release ref app-ziti-console-v3.0.8 doesn't manifest the same issue.