Yarn(真正)的“警告模式[” debug@^4.1.1”]的含义是试图在同一目的地解压缩”。 [英] What does Yarn (really) mean by "warning Pattern ["debug@^4.1.1"] is trying to unpack in the same destination"

查看:578
本文介绍了Yarn(真正)的“警告模式[” debug@^4.1.1”]的含义是试图在同一目的地解压缩”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到Yarn on Stack Overflow上关于此警告的其他问题,但我找不到答案的意思-我的意思是,真正的意思。也就是说,这对我和我的应用程序意味着什么,我该如何纠正?

I see there are other questions regarding this warning from Yarn on Stack Overflow, but I can't find the answer to what it means -- I mean, what it really means. That is, what does it mean for me and my app, and how can I correct it?

我正在尝试添加调试使用Yarn,即 yarn add debug -D ,我得到警告

I'm trying to add debug with Yarn, i.e. yarn add debug -D and I get the warning

warning Pattern ["debug@^4.1.1"] is trying to unpack in the same destination "/Users/xyz/Library/Caches/Yarn/v4/npm-debug-4.1.1-3b72260255109c6b589cee050f1d516139664791/node_modules/debug" as pattern ["debug@^4.1.0","debug@^4.0.1"]. This could result in non-deterministic behavior, skipping.

我尝试了 yarn remove debug 后跟 yarn添加调试-D ,但是没有用。

I tried yarn remove debug followed by yarn add debug -D, but that didn't work.

任何见解和建议都非常感谢!

Any insights and advice much appreciated!

推荐答案

这意味着安装程序通常会创建要安装的目录,但是在这种情况下,它偶然遇到了目录已存在的情况。警告您,如果将文件放在此处,则新文件可能会与已经存在的文件共存。

It means the installer usually creates the directory to install in, but in this case, it stumbled on a situation where the directory already exists. It is warning you that if it puts the files there, then the new files could co-exist with the files that were already there.

尝试运行:

rm -fR /Users/xyz/Library/Caches/Yarn/v4/npm-debug-4.1.1-3b72260255109c6b589cee050f1d516139664791/node_modules/debug

然后尝试重新安装。

如果那样不起作用,请尝试运行:

If that doesn't work, try running:

rm -fR /Users/xyz/Library/Caches/Yarn/v4/npm-debug-4.1.1-3b72260255109c6b589cee050f1d516139664791/node_modules

然后尝试再次安装。

这篇关于Yarn(真正)的“警告模式[” debug@^4.1.1”]的含义是试图在同一目的地解压缩”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆