测试环境

macbook 系统版本:
在这里插入图片描述

问题描述

下载vsocde后,测试下更新。发现vscode发出以下的报错。

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. See this link for more information.

解决办法

在终端输入以下命令

sudo chown -R $USER ~/Library/Caches/com.microsoft.VSCode.ShipIt

输入后,回车会提示输入密码。

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

加粗部分为vscode的目录。输入完后,回车。
这样就可以解决出现的问题。

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐