尝试部署到模拟器时 node_modules 错误中的无效符号链接 (RN 0.45) [英] Invalid symlink in node_modules error when trying to deploy to simulator (RN 0.45)

查看:40
本文介绍了尝试部署到模拟器时 node_modules 错误中的无效符号链接 (RN 0.45)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从 0.39.2 t 0.45.1 升级并更新节点包并修复 xcode 中的大约 50 个问题后,我的构建成功了,但是当我尝试在模拟器上部署时,我得到了.

After making an upgrade from 0.39.2 t 0.45.1 and updating node packages and fixing about 50 issues in xcode my build succeeds but when trying to deploy on simulator I get.

安装 build/Build/Products/Debug-iphonesimulator/AppName.app安装 build/Build/Products/Debug-iphonesimulator/AppName.app处理命令时遇到错误(域=MIInstallerErrorDomain,代码=70):

Installing build/Build/Products/Debug-iphonesimulator/AppName.app Installing build/Build/Products/Debug-iphonesimulator/AppName.app An error was encountered processing the command (domain=MIInstallerErrorDomain, code=70):

无效符号链接位于/Users/dob99/Library/Developer/CoreSimulator/Devices/9BEB7AD7-F8CD-4CF9-BEA5-B995D2CE07E9/data/Library/Caches/com.apple.mobile.installd.staging/temp.6ItzQQ/extracted/AppName/node_modules/react-native/third-party/glog-0.3.4/test-driver正在启动处理时遇到错误命令(域=NSMachErrorDomain,代码=-308):操作不能完成.(Mach error -308 - (ipc/mig) 服务器死机)

invalid symlink at /Users/dob99/Library/Developer/CoreSimulator/Devices/9BEB7AD7-F8CD-4CF9-BEA5-B995D2CE07E9/data/Library/Caches/com.apple.mobile.installd.staging/temp.6ItzQQ/extracted/AppName/node_modules/react-native/third-party/glog-0.3.4/test-driver Launching An error was encountered processing the command (domain=NSMachErrorDomain, code=-308): The operation couldn’t be completed. (Mach error -308 - (ipc/mig) server died)

react-native-cli: 2.0.1

react-native-cli: 2.0.1

反应原生:0.45.1

react-native: 0.45.1

代码:8.3.3

请指教.

注意:我也能够在稍后为 android 构建时重现这一点.使用下面的 unlink 命令修复也修复了 android 问题.

Note: I was able to reproduce this later on building for android too. The fix with the unlink command from below fixed the android issue too.

推荐答案

我的团队昨天遇到了同样的错误.这显然为他们修复了它:

My team was getting the same error yesterday. This apparently fixed it for them:

<代码>取消链接 node_modules/react-native/third-party/glog-0.3.4/test-driver

以下是有关该错误的更多信息:https://github.com/facebook/react-native/issues/14417

Here's more info about the bug: https://github.com/facebook/react-native/issues/14417

这篇关于尝试部署到模拟器时 node_modules 错误中的无效符号链接 (RN 0.45)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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