如何仅卸载多个 Watchman 版本中的一个?

问题描述 投票:0回答:3

我在处理 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]

我期待有一位善良的人帮助我解决这个问题。

terminal command-line homebrew versioning watchman
3个回答
0
投票

尝试一下

brew reinstall watchman
(相当于
brew uninstall watchman; brew install watchman
),它可以处理已安装的
brew
的多个版本。
    


0
投票


0
投票
这里

就是答案。我希望它会有所帮助

© www.soinside.com 2019 - 2024. All rights reserved.