protobuf.js icon indicating copy to clipboard operation
protobuf.js copied to clipboard

Install fails in Node 16.17.0

Open cmbirk opened this issue 3 years ago • 0 comments

protobuf.js version: 6.11.3

Apparently GCP Cloud Functions automatically update to the latest NodeJS minor version. It has recently updated to version 16.17.0 and it's causing the protobuf install to fail with the error:

# This file contains the result of Yarn building a package (protobufjs@npm:6.11.3)
# Script name: postinstall

node:internal/errors:477
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_LOADER_CHAIN_INCOMPLETE]: "file:///.../.pnp.loader.mjs 'resolve'" did not call the next hook in its chain and did not explicitly signal a short circuit. If this is intentional, include `shortCircuit: true` in the hook's return.
    at new NodeError (node:internal/errors:387:5)
    at ESMLoader.resolve (node:internal/modules/esm/loader:852:13)
    at async ESMLoader.getModuleJob (node:internal/modules/esm/loader:431:7)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:533:24)
    at async loadESM (node:internal/process/esm_loader:91:5)
    at async handleMainPromise (node:internal/modules/run_main:65:12) {
  code: 'ERR_LOADER_CHAIN_INCOMPLETE'
}

System Versions: MacOS & Linux [email protected] [email protected]

cmbirk avatar Sep 21 '22 04:09 cmbirk