Why does installing one npm package remove many others?

I find it difficult to install the package using npm. The package installs successfully, but it removes a whole bunch of other packages.

I can not reproduce this on another machine. Here is the output of the install package:

[masterwok@crunchbox Caster]$  npm install react-native-google-cast --save
npm notice created a lockfile as package-lock.json. You should commit this file.
+ react-native-google-cast@1.3.0
added 1 package and removed 638 packages in 7.967s
[masterwok@crunchbox Caster]$  

As you can see, it completely destroys my application dependencies. What could be the reason for this? If I were to guess, I would say that some dependency is not fulfilled, cascades. I have no idea hah

+4
source share
1 answer

I'm not quite sure why npm does what it does, but from the look of the output, packet blocking, I assume you are using npm5.

Try downgrading to npm 4.

+3

Source: https://habr.com/ru/post/1678751/


All Articles