DEV Community

内村由
内村由

Posted on

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.

Top comments (0)