Add this to the package.json file to specific for what dependency, can ignore what.

"overrides": {
  "lucide-angular": {
    "@angular/core": "19.x",
    "@angular/common": "19.x"
  }
}

In this case we’re saying lucide-angular can ignore dependency messages for @angular/core and @angulre/common.

There’s another trick you can do if you’re dealing with libraries that the dependency is really hard to track down.

"overrides": {
  "lucide-angular": {
    "@angular/core": "$@angular/core",
    "@angular/common": "$@angular/common"
  }
}

You may not set an override for a package that you directly depend on unless both the dependency and the override itself share the exact same spec. To make this limitation easier to deal with, overrides may also be defined as a reference to a spec for a direct dependency by prefixing the name of the package you wish the version to match with a $.1

Resources

Footnotes

  1. bottom of the overrides section: https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides