我是 Yarn 包管理器的新手。我得到低于错误。有人可以帮助我吗?
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
最佳答案
迟到的答案,但...
有时 yarn
似乎在确定依赖项时会遇到问题。
所以在这种情况下的解决方法是:
yarn why <problem_package_name_here>
以查找该包的所有依赖项。因此,在您的情况下,这将是 yarn why ethereumjs-abi
- 记下所有这些依赖包。 yarn remove
该包和所有依赖它的包 yarn add <problem_package_name_here>
(即在你的情况下是 yarn add ethereumjs-abi
),最后是 yarn add <all> <the> <other> <packages> <you> <removed> <in> <step 2>
现在
yarn
不应该再混淆依赖等。
关于npm - yarn 安装 |警告模式正在尝试在同一目的地解包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53266494/