I can't install Code due to the following error: EACCES: permission denied, unlink '/usr/local/bin/code'

yuuuchimura

内村由

Posted on August 31, 2024

I can't install Code due to the following error: EACCES: permission denied, unlink '/usr/local/bin/code'

Solution

Uninstall the code command and reinstall it.

Steps:

  1. Open VSCode and press Shift+Command+P to bring up the Command Palette.
  2. Select Shell Command: Uninstall 'code' command from PATH.
  3. Press Shift+Command+P again to open the Command Palette.
  4. Select Shell Command: Install 'code' command in PATH.
💖 💪 🙅 🚩
yuuuchimura
内村由

Posted on August 31, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related