Npm 纱线安装|警告图案试图在同一目的地解包

Npm 纱线安装|警告图案试图在同一目的地解包,npm,yarnpkg,Npm,Yarnpkg,我是包装经理的新手。我正在犯错误。有人能帮我吗 D:\test\0x-starter-project-master>yarn install yarn install v1.12.1 [1/4] Resolving packages... [2/4] Fetching packages... warning Pattern ["ethereumjs-abi@git+https://github.com/ethereumjs/ethereumjs-abi.git"] is tryi

我是包装经理的新手。我正在犯错误。有人能帮我吗

 D:\test\0x-starter-project-master>yarn install
 yarn install v1.12.1
 [1/4] Resolving packages...
 [2/4] Fetching packages...
 warning Pattern ["ethereumjs-abi@git+https://github.com/ethereumjs/ethereumjs-abi.git"] is trying to unpack in the same destination "C:\\Users\\abc\\AppData\\Local\\Yarn\\Cache\\v3\\npm-ethereumjs-abi-0.6.5-4ea2fdfed09e8f99117d9362d17c6b01b64a2bcf\\node_modules\\ethereumjs-abi" as pattern ["ethereumjs-abi@0.6.5","ethereumjs-abi@^0.6.5","ethereumjs-abi@0.6.5"]. This could result in non-deterministic behavior, skipping.
 [---------------------------------------------------------------------------------------------------------------] 0/884

我在使用Thread安装gulp cli时遇到了类似的错误。 这个变通解决方案对我来说很有效: 使用npm安装Thread不会安装的模块。

延迟回答,但。。。 似乎
warn
有时在确定依赖关系时会遇到问题。 因此,这种情况下的解决方法是:

  • 运行
    why
    查找该包上的所有依赖项。因此,在您的情况下,这就是为什么以太坊JS abi——请记下所有这些依赖包
  • 然后
    纱线移除该包装以及依赖于它的所有包装
  • 纱线添加
    首先(即您的案例中的
    纱线添加ethereumjs abi
    ),最后
  • 纱线添加
  • 现在,不要再对依赖项等混淆了