无法安装Mac的VS Code [英] Unable to install VS Code for Mac

查看:173
本文介绍了无法安装Mac的VS Code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了 Mac 版 VS Code,但我无法在我的 MacBook 上安装它.我收到以下错误:

I have downloaded VS Code for Mac, but I'm unable to install it on my MacBook. I get the following error:

无法打开"Visual Studio代码-内部人员",因为Apple无法检查它是否包含恶意软件.

"Visual Studio Code - Insiders" can't be opened because Apple cannot check it for malicious software.

以下是完整错误消息的截图:

Here is a sreen shot of the full error message:

如何获取VS Code以进行安装和运行?

推荐答案

问题是由于macOS要求Apple对应用进行公证的.解决此问题的最佳方法是简单地右键单击该应用程序,然后选择打开".如果这不起作用,请首先将应用程序移至应用程序"文件夹.然后打开终端并粘贴并执行以下命令:

The problem is caused by macOS requiring apps to be notarized by Apple. The best way around this problem is to simply right-click on the app and select Open. If this doesnt work, first move the app to the Applications folder. Then open Terminal and paste and execute the following command:

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

这应该删除应用程序上的隔离区并允许您运行它.

This should remove the quarantine on the app and allow you to run it.

这篇关于无法安装Mac的VS Code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆