Search code examples
visual-studio-codeaccess-rights

Auto update isn't working in VSCode: Could not create temporary directory: Permission denied


From certain point I started getting this error from time to time(I suppose it fires when editor tries to check for updates), and manual/auto update doesn't work. The only way I can update the editor is re-download the app and replace it manually.

Does someone face same issue and successfully resolved?

Screenshot


Solution

  • Try to type the following commands in a terminal:

    cd ~/Library/Caches
    
    sudo chown -R $(whoami):staff *