How do I override multiple nested NPM dependency in different versions?

60 views Asked by At

i'm sorry my English is not good

my NPM dependency

dependency tree

+-- [email protected]
| +-- [email protected]
| | +-- [email protected] <---this


+-- [email protected]
| +-- @alib/[email protected]
| | +-- [email protected]
| | | -- [email protected] <---this

i need to override for fix loophole detection:

dependency tree

+-- [email protected]
| +-- [email protected]
| | +-- [email protected] <---this


+-- [email protected]
| +-- @alib/[email protected]
| | +-- [email protected]
| | | -- [email protected] <---this

my version: node: v12.18.0 npm: 6.14.4

I search question ,but that can't resolve my question

1

There are 1 answers

4
Michael An On

Can you upgrade react-dev-utils to same 12.0.1 versions? This version was released 2 years age, it is stable and dual-use [email protected].

dependency tree

+-- [email protected]
| +-- [email protected]
| | +-- [email protected]

+-- [email protected]
| +-- @alib/[email protected]
| | +-- [email protected]
| | | -- [email protected]

If you cannot upgrade react-dev-utils to the same version, I believe ice.js is not widely used, can you use another tool instead of ice.js?