LoginSignup
5
6

More than 5 years have passed since last update.

Could not create temporary directory: Permission deniedのエラーが表示される際の対処

Posted at

筆者に起きた現象

Vueのプロジェクトをターミナルからrunする際にvscodeで上記のエラーが出た

原因

vscodeのキャッシュにアクセス権限がうまく設定されないことが原因のようで、
一度そのディレクトリを削除するとうまくできた

対処

キャッシュの確認
 ls -la ~/Library/Caches/com.microsoft.VSCode.*/
もしくは
 ls -la ~/Library/Caches/com.microsoft.VSCodeInsiders.*/
ディレクトリが空の場合、そのディレクトリを削除
sudo rm -Rf ~/Library/Caches/com.microsoft.VSCode.ShipIt
もしくは
sudo rm -Rf ~/Library/Caches/com.microsoft.VSCodeInsiders.ShipIt

参考サイト

Code won't update on macOS
Upgrade on MacOS not working

5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6