问题描述
visual studio code 检查更新,报错,visual studio code没有磁盘读写权限。(可能会导致插件安装报错?)
报错: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.
环境
macos 13.0.1
vscode: Version: 1.78.2 (Universal)
原因
下载的visual studio code 适配macOS 10.11+ darwin 版本的,安装时会自动询问是否要copy到 application中,copy到application后自动获得磁盘读写权限。
而13.0系统中,下载到Downloads,安装后不会询问是否要copy到application里,默认被安装到Downloads下,所以没有读写权限。
解决方法
参考:https://github.com/microsoft/vscode/issues/7426#issuecomment-425093469
- step0:
退出 VS 软件 - step 1:
mv ~/Downloads/Visual\ Studio\ Code.app /Applications
手动mv到 application

在macOS13.0.1上,当VisualStudioCode(VSCode)1.78.2从下载目录安装时,未自动获取磁盘读写权限。为解决此问题,用户需手动将应用移动到Applications目录,并使用`chown`和`xattr`命令更改权限。若初次尝试失败,可能需要先卸载再重装。

314

被折叠的 条评论
为什么被折叠?



