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
  • 1
    Then I wonder who edited my /etc/paths (and not ~/.bash_profile) to add /usr/local/bin to it.. – anki Sep 15 '20 at 7:32
  • 1
    This might be depending on the initially installed version of macOS. – nohillside Sep 15 '20 at 7:56
  • 2
    @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 '20 at 13:17
  • 1
    @TJ Luoma, Update: Apple included /usr/local/bin as the first line in the /etc/paths file in OS X 10.10 and onwards. In OS X 10.10 /usr/local/ did not exist and had to be created in a clean install. In OS X 10.11 /usr/local/ did exist. However /usr/local/ is not what was mentioned in this answer, it was /usr/local/bin and has been included in the /etc/paths file since OS X 10.10 and has by default been the 1st segment in the PATH, nonetheless that directory has always had to be created by some mechanism other than the OS install on a clean install. – user3439894 Sep 15 '20 at 15:34
  • 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 '20 at 15:42

You must log in to answer this question.

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