我在使用npm安装一个包的过程中遇到了困难。这个包安装成功,但是它却移除了很多其他的包。
我无法在另一台机器上复制这个问题。以下是包安装的输出:
[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]$
从您可以看到的情况来看,它完全破坏了我的应用程序依赖关系。可能是什么原因导致这种情况?如果我必须猜测,我会说某些依赖未能满足要求并向下级联。我真的不知道哈。