我在处理 React Native / Expo 项目时遇到了我的看守人的问题,我认为这是因为我可能有多个版本。这是我可以通过我的终端找到有关Watchman的信息:
~npm watchman
9.6.6
~watchman -v
2023.05.22.00
~which -a watchman
/opt/homebrew/bin/watchman
/opt/homebrew/bin/watchman
~echo $PATH
/opt/homebrew/bin:/opt/homebrew/sbin:
/usr/local/bin:/System/Cryptexes/App/
usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple
/usr/bin:/var/run/com.apple.security.cryptexd/
codex.system/bootstrap/usr/local/bin:/var/run/
com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/
usr/appleinternal/bin:/Users/jennyestes/Library/Android/sdk/
platform-tools:/opt/homebrew/bin:/opt/homebrew/sbin:
/Users/jennyestes/.npm-global/bin
~npx expo-cli doctor
WARNING: The legacy expo-cli does not support Node +17. Migrate to the versioned Expo CLI (npx expo).
Warning: You are using an old version of watchman (vHEAD-2209b1c).
It is recommend to always use the latest version, or at least v4.6.0.
If you are using homebrew, try:
brew uninstall watchman; brew install watchman
Warning: Invalid version [email protected] for expo sdkVersion 44.0.0.
Use [email protected]
我期待有一位善良的人帮助我解决这个问题。