[英]Bad CPU type in executable mac Intel core
嘗試安裝特定版本的 nvm
但我明白了
nvm install 16.14.2
-bash: /opt/homebrew/bin/awk: Bad CPU type in executable
-bash: /opt/homebrew/bin/awk: Bad CPU type in executable
-bash: /opt/homebrew/bin/awk: Bad CPU type in executable
-bash: /opt/homebrew/bin/awk: Bad CPU type in executable
-bash: /opt/homebrew/bin/awk: Bad CPU type in executable
-bash: /opt/homebrew/bin/awk: Bad CPU type in executable
-bash: /opt/homebrew/bin/awk: Bad CPU type in executable
-bash: /opt/homebrew/bin/awk: Bad CPU type in executable
-bash: /opt/homebrew/bin/awk: Bad CPU type in executable
-bash: /opt/homebrew/bin/awk: Bad CPU type in executable
A version number is required.
我的 Mac 有2.4 GHz 8-Core Intel Core i9
file /opt/homebrew/bin/awk
/opt/homebrew/bin/awk: Mach-O 64-bit executable arm64
和
uname -a
Darwin <mystuff> 21.4.0 Darwin Kernel Version 21.4.0: <timestamp>; root:xnu-8020.101.4~15/RELEASE_X86_64 x86_64
不知道該怎么做才能讓它工作。 有什么建議么?
發現我的 ARM 默認前綴是錯誤的: - macOS intel 上的/usr/local
- macOS ARM 上的/opt/homebrew
- Linux 上的/home/linuxbrew
------ 為了修復它,我必須卸載 Homebrew,在這里找到: github.com/homebrew/install#uninstall-homebrew然后我不得不重新安裝它,在同一個鏈接中找到。 重新安裝它會將默認前綴從不正確的/opt/homebrew
更改為正確的/usr/local
前綴
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.