这真的是React Native中的恶意软件吗?

huangapple go评论50阅读模式
英文:

Is this really malware in react native?

问题

我遇到了一个严重的问题。我需要更新应用程序的某些内容,但由于病毒保护软件不断将yarn install删除,所以我无法这样做。

错误: 打开@react-native/assets@npm:1.0.0的缓存条目失败: ENOENT: 没有这个文件或目录,stat '/Users/admin/Desktop/AwesomeProject/.yarn/cache/@react-native-assets-npm-1.0.0-2165b2ba43-4525dd1704.zip'

是否有任何方法可以解决这个问题?

尝试创建另一个React Native项目,版本为0.69,但仍然出现相同的问题。

英文:

I have an big issue. I need update something to the application but I can't do that because yarn install keeps failing because virus protection software keeps removing it.

Error: Failed to open the cache entry for @react-native/assets@npm:1.0.0: ENOENT: no such file or directory, stat '/Users/admin/Desktop/AwesomeProject/.yarn/cache/@react-native-assets-npm-1.0.0-2165b2ba43-4525dd1704.zip

这真的是React Native中的恶意软件吗?

Is there anything I can do to fix this?

Tried to create another react native project with 0.69 version but resulted still with same issue.

答案1

得分: 1

尝试以下步骤:

1:在终端中运行 - yarn cache clean

2- 删除特定的缓存条目:在您的情况下,看起来错误与 @react-native/assets@npm:1.0.0 的缓存条目相关。您可以手动删除这个缓存条目,方法是删除相应的 zip 文件。在您的情况下,它位于 /Users/admin/Desktop/AwesomeProject/.yarn/cache/@react-native-assets-npm-1.0.0-2165b2ba43-4525dd1704.zip。删除此文件,然后再次尝试运行 yarn install。

3:使用 --ignore-scripts 标志:如果错误仍然存在,您可以尝试在安装过程中使用 --ignore-scripts 标志运行 yarn install,以跳过运行任何脚本的步骤。这可以帮助绕过与脚本失败或被您的病毒防护软件阻止相关的任何问题。运行以下命令:

yarn install --ignore-scripts

英文:

Try below steps:

1: Run in terminal - yarn cache clean

2- Delete the specific cache entry: In your case, it seems that the error is related to the cache entry for @react-native/assets@npm:1.0.0. You can manually delete this cache entry by removing the corresponding zip file. In your case, it's located at /Users/admin/Desktop/AwesomeProject/.yarn/cache/@react-native-assets-npm-1.0.0-2165b2ba43-4525dd1704.zip. Delete this file and then try running yarn install again.

3: Use the --ignore-scripts flag: If the error persists, you can try running yarn install with the --ignore-scripts flag to skip running any scripts during the installation process. This can help bypass any issues related to scripts failing or being blocked by your virus protection software. Run the following command:

yarn install --ignore-scripts

huangapple
  • 本文由 发表于 2023年6月1日 21:26:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/76382396.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定