CI failing after no apparent changes

During one of our deployment stages, we are receiving the error of

Error: Cannot find module 'node:stream'

This occurs after running the following command when trying to build our JS.

node_modules/.bin/tsc -p .

We have not made any code changes, and our pipeline has been working fine ever since a few days ago. Does anyone have any ideas?

This can mostly only mean that, as it mentions, the module is not installed. Perhaps npm install was not ran? Or if it was, perhaps it was run on a broken cache, you may need to increment your cache key if you are using one.

      - restore_cache:
            # Find a cache corresponding to this specific package-lock.json checksum
            # when this file is changed, this key will fail
            - v1-npm-deps-{{ checksum "package-lock.json" }}

In this example I would change v1 to v2 to create a new cache bucket.