[英]M1 MacBook Air unable to install VS Code. "Unable to write program user data."
Picure of Error Code I am trying to install VS Code on my new Macbook Air M1.错误代码图片我正在尝试在我的新 Macbook Air M1 上安装 VS Code。 I get the error message on the photo attached.
我在所附照片上收到错误消息。
"Unable to write program user data. “无法写入程序用户数据。
A system error occurred (EACCES: permission denied, mkdir '/Users/John/Library/Application Support/Code')发生系统错误(EACCES:权限被拒绝,mkdir '/Users/John/Library/Application Support/Code')
Please make sure the following directories are writeable:请确保以下目录是可写的:
~/Library/Application Support/Code ~/.vscode/extensions" ~/Library/Application Support/Code ~/.vscode/extensions”
I found the solution to this issue :我找到了这个问题的解决方案:
The location for the tmp directory can be changed with the XDG_RUNTIME_DIR environment:可以使用 XDG_RUNTIME_DIR 环境更改 tmp 目录的位置:
XDG_RUNTIME_DIR=my-runtime-dir ./VSCode-linux-x64/bin/code --user-data-dir my_dir XDG_RUNTIME_DIR=my-runtime-dir ./VSCode-linux-x64/bin/code --user-data-dir my_dir
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.