I'm not sure where to place the Neovim folder (after extracting it). Is the location usr/local/bin correct?

I get the following

zsh: permission denied: nvim


The location of an executable is much less important for it to be run from Terminal than its permissions.

Check them by running

ls -la /usr/local/bin/nvim

I'm not sure where to place the Neovim folder

You can place it anywhere you want as long as the shell can find it. Shell finds items using a variable named PATH.

Is the location [/]usr/local/bin correct?

It is correct only if this location is in PATH. Check it by running echo $PATH in your terminal. I personally like ~/Applications. If it is not in PATH: Open ~/.bash_profile/ ~/.zshenv in your text editor and add the following line to it


zsh: permission denied: nvim

You have two choices here:

  • Use Homebrew to install it and no longer worry about putting files in lib or share or bin folder.

  • Run

    chmod u+x /usr/local/bin/nvim
| improve this answer | |
  • Good information, but one minor correction: /usr/local/ is not in the default $PATH in macOS. I run into this all the time with Keyboard Maestro and other GUI apps that use the default $PATH if you don’t add /usr/local they miss all those tools. – TJ Luoma Sep 15 at 0:27
  • 1
    Then I wonder who edited my /etc/paths (and not ~/.bash_profile) to add /usr/local/bin to it.. – anki Sep 15 at 7:32
  • 1
    This might be depending on the initially installed version of macOS. – nohillside Sep 15 at 7:56
  • 1
    @TJ Luoma, On a clean install of macOS, /usr/local/bin has been the first line in the /etc/paths file in every release of macOS and has been by default the first entry in the default PATH. It may not have been, didn't check recently, in a clean install of Mac OS X or OS X but it has always been in a clean install of macOS. That said, the actual directory /usr/local/bin does not exist by default and needs to be created. Upgrade installs may be a different story, but I never do upgrade installs, only clean installs and migrate my data from a backup. – user3439894 Sep 15 at 13:17
  • 1
    Shouldn’t $PATH be in ~/.zshenv and not the bash profile? But $PATH is already fine, else OP would get a not found instead of a permission error. – WGroleau Sep 15 at 15:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .