optionalDependencies
на сайте с 05 апреля 2023, 00:03
If a dependency can be used, but you would like npm to proceed if it cannot be found or fails to install, then you may put it in the optionalDependencies ...