gpt4 book ai didi

javascript - 错误 : `fsevents` unavailable (this watcher can only be used on Darwin)

转载 作者:行者123 更新时间:2023-12-01 11:32:53 24 4
gpt4 key购买 nike

我正在本地环境中克隆现有的 react native 应用程序,但每次运行 react-native run-ios我收到以下错误:

** BUILD FAILED **


The following commands produced analyzer issues:
Analyze /Users/alydabbous/code/Dabbous-Innopay/ideal-app/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c normal x86_64

Analyze /Users/alydabbous/code/Dabbous-Innopay/ideal-app/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c normal x86_64
Analyze Base/RCTModuleMethod.mm normal x86_64
(3 commands with analyzer issues)

The following build commands failed:
Ld build/Build/Products/Debug-iphonesimulator/MyUros.app/MyUros normal x86_64
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/TPP.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/TPP.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

react-packager 中的这个错误:
Loading dependency graph...(node:52097) UnhandledPromiseRejectionWarning: Error: `fsevents` unavailable (this watcher can only be used on Darwin)
at new FSEventsWatcher (/Users/alydabbous/code/Dabbous-Innopay/ideal-app/node_modules/sane/src/fsevents_watcher.js:41:11)
at createWatcher (/Users/alydabbous/code/Dabbous-Innopay/ideal-app/node_modules/jest-haste-map/build/index.js:600:23)
at Array.map (<anonymous>)
at HasteMap._watch (/Users/alydabbous/code/Dabbous-Innopay/ideal-app/node_modules/jest-haste-map/build/index.js:747:25)
at _buildPromise._buildFileMap.then.then.hasteMap (/Users/alydabbous/code/Dabbous-Innopay/ideal-app/node_modules/jest-haste-map/build/index.js:279:21)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
(node:52097) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:52097) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

我只在运行 react-native run-ios 时收到此错误对于我克隆的 repo 。但是当我创建一个新的 react-native 应用程序时,一切正常。我尝试了一切:杀死服务器,再次卸载和安装节点,删除我的 node_modules 文件等,但我仍然无法解决这个问题。任何帮助将非常感激。谢谢。

最佳答案

对我来说,我卸载了 watchman然后使用 brew 重新安装它如下所示:

npm r -g watchman 
brew install watchman

关于javascript - 错误 : `fsevents` unavailable (this watcher can only be used on Darwin),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52427810/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com