0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[macOS] VSCodeがアップデートできていなかった件

Last updated at Posted at 2025-02-06

現象

手動で更新をかけると右下に以下のエラーが出ていました。

Cannot update while running on a read-only volume. The application is on a read-only volume. Please move the application and try again. If you're on macOS Sierra or later, you'll need to move the application out of the Downloads directory. This might mean the application was put on quarantine by macOS. See this link for more information.

確認したこと

ダウンロードフォルダにあると更新ができないという情報があったので、ダウンロードフォルダを確認したが Visual Studio Code.app はアプリケーションフォルダに正しく存在していた。

試したこと

エラーメッセージ中に以下のリンクが記載されていたので

サイトに記載されていたコマンドを実行して所有者や属性変更など実施したが改善せず。

sudo chown $USER ~/Library/Caches/com.microsoft.VSCode.ShipIt/*
xattr -dr com.apple.quarantine /Applications/Visual\ Studio\ Code.app

解決できた方法

入れ直してみました。
ネットからダウンロードしたものをインストールしていたのですが、homebrew で入れてみます。
homebrew が予め入っている前提です。

アンインストール

ファインダーからアプリケーションの中にある Visual Studio Code.app を右クリックし、[ゴミ箱に入れる]を実行。

インストール

先に homebrew 自身をアップデートします
brew upgrade

VSCodeのインストールをします
brew install visual-studio-code

コマンドで起動

code

バージョンを確認して新しくなっていることを確認しました。

image.png

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?