firebase-tools: Broken dependency: @apidevtools/json-schema-ref-parser

The @apidevtools/json-schema-ref-parser dependency is broken, and prevents firebase-tools from being installed on Node version <17. Please note, this dependency is also being abandoned and a replacement should be found

https://github.com/APIDevTools/json-schema-ref-parser/issues/298

“Suggest pinning to the exact version 9.1.0 if you haven’t already, until a 9.1.2 can be released.”

[REQUIRED] Environment info

firebase-tools: 11.20.0

Platform: Ubuntu

[REQUIRED] Test case

on a system using Node <17:

yarn global add firebase-tools

[REQUIRED] Steps to reproduce

On a system running Node version <17, install firebase-tools

[REQUIRED] Expected behavior

firebase-tools will be installed successfully

[REQUIRED] Actual behavior

installation fails due to broken dependency @apidevtools/json-schema-ref-parser error @apidevtools/json-schema-ref-parser@9.1.1: The engine "node" is incompatible with this module. Expected version ">= 17". Got "14.21.2"

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 18
  • Comments: 21 (3 by maintainers)

Most upvoted comments

v9.1.2 of @apidevtools/json-schema-ref-parser has been released, which reverts the breaking change. You should be able to upgrade to this using normal npm version to get it working again.

yarn install --ignore-engines

Worked for me! Thankyou 🙂

  • Edit: Although this solution worked, everytime a package is installed you have to pass the flag again. So, I added this to package.json to avoid passing the flag.
"resolutions": {
    "@apidevtools/json-schema-ref-parser": "9.1.0"
  }

After adding this, I deleted the yarn.lock file and did yarn install again.

I find a solution --> You can use --> yarn install --ignore-engines --> to allows package authors to state which node engines are required for the package to work.

is it resolved the error @filiperochs ?

I am seeing the exact same error

error @apidevtools/json-schema-ref-parser@9.1.1: The engine "node" is incompatible with this module. Expected version ">= 17". Got "16.19.0"

this was working before not sure if an update has caused this