0

I want to install package A. Package A uses package B version:1 as its dependency.

However, package B version:1 deprecated by the author. On installation of package A npm warns that package B should be updated.

Can I update the package B to the latest version on my end?

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
Mandeep Singh
  • 33
  • 1
  • 6
  • How does B define its dependency on A (exact version, ~ or ^)? Would that also be satisfied by the newer version? If not, no you can't. – jonrsharpe Mar 26 '20 at 08:04
  • @jonrsharpe Thanks for reply and editing. Actually I want to install `pdfkit`. `pdfkit` uses `core-js`. On installation, npm warns that `core-js:2.6.11` is deprecated. So, I want to know that how to solve that. Can i update the `core-js` dependency of `pdfkit` on my end. – Mandeep Singh Mar 26 '20 at 08:28
  • pdfkit doesn't depend directly on core-js, which makes it more complicated. I guess your dependency is ultimately on `core-js@^2.x.y`, for which 2.6.11 is the latest version. – jonrsharpe Mar 26 '20 at 08:49
  • @jonrsharpe Correct. Thanks for help – Mandeep Singh Mar 26 '20 at 09:05

0 Answers0