Cannot install in Homebrew on ARM processor error on M1

Asked 1 years ago, Updated 1 years ago, 284 views

brew install neovim
running

Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!
Please create a new installation in/opt/homebrew using one of the
"Alternative Installs" from:
  https://docs.brew.sh/Installation
You can migrate your previously installed formula list with:
  brew bundle dump

received an error.
The recommended installation destination for Homebrew was /local/bin, but the recommended installation destination for MacOS ARM has been changed to opt/homebrew, and the path needs to be changed.

Please tell me how to change the path.

macos homebrew neovim

2023-01-08 19:41

1 Answers

Add the Homebrew initial configuration to the .zprofile file.
Restarting the terminal sets the environment variable PATH.

eval "$(/opt/homebrew/bin/brew shellenv)"


2023-01-08 21:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.