Skip to content

Instantly share code, notes, and snippets.

View luboslives's full-sized avatar
💭
Always learning.

luboslives

💭
Always learning.
View GitHub Profile
@iamcryptoki
iamcryptoki / vscode-update-permission-denied.txt
Created December 14, 2018 19:46
Fix Visual Studio Code update error "Could not create temporary directory: Permission denied" on macOS.
sudo rm -Rf ~/Library/Caches/com.microsoft.VSCode.ShipIt
sudo rm -Rf ~/Library/Caches/com.microsoft.VSCodeInsiders.ShipIt
sudo npm uninstall npm -g
brew uninstall node

Then

sudo rm -rf /usr/local/lib/dtrace/node.d /usr/local/lib/node_modules /usr/local/bin/npm /usr/local/bin/nodemon /usr/local/bin/node /usr/local/include/node ~/.npm* ~/.node* /usr/local/share/man/*/node* /usr/local/share/man/*/npm*