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?

More than 1 year has passed since last update.

VScodeがDownloadフォルダにあるのにアップデートできない現象の解決法

Last updated at Posted at 2023-08-12

調べて出てくるのは大体Visual Studio Code.appが Download フォルダにないから、という理由ですが、ちゃんと Application フォルダにあったのにエラーが出ていたので解決法を探した。

エラー全文

error
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.

解決法

エラー文にある link 先のコマンドで解決。
ターミナル(iTerm)で以下のコマンドを実行し、VScode を再起動するとアップデートが問題なく行えました。

zsh
xattr -dr com.apple.quarantine /Applications/Visual\ Studio\ Code.app

Visual\ Studio\ Code.appの部分は自身の VScode の Application 名に合わせてください。
また、iTerm だと実行時パーミッションエラーが出たので、

システム設定 > プライバシーとセキュリティ > アプリケーション管理

で iTerm に権限を付与すると実行できました。

おわりに

今回、Qiita CLI を使用して記事を書きましたが思ったより使いやすいのでおすすめです。
https://github.com/increments/qiita-cli

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?