我是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发布于 2019-12-09 12:29:48
回答晚了但是..。似乎yarn有时会在找出依赖项时遇到问题。因此,这种情况下的解决方法是:
yarn why <problem_package_name_here>以查找该包上的所有依赖项。因此,在您的情况下,这将是yarn why ethereumjs-abi -记录所有这些依赖包。yarn remove该包和所有依赖于ityarn add <problem_package_name_here>的包(即,在您的示例中为yarn add ethereumjs-abi ),然后是finallyyarn add <all> <the> <other> <packages> <you> <removed> <in> <step 2>现在yarn不应该再对依赖等问题感到困惑了。
发布于 2018-12-12 05:52:19
我在使用yarn安装gulp-cli时遇到了类似的错误。这个变通的解决方案对我很有效:使用npm安装yarn不会安装的模块。
https://stackoverflow.com/questions/53266494
复制相似问题