Visual Studio code – Update error: Could not create a temporary directory: Permission denied on Mac


Solution:

Quit Visual Studio code and run following command on terminal.

sudo rm -Rf ~/Library/Caches/com.microsoft.VSCode.ShipIt

Fixed the problem for my vs code not updating.