跳至主要內容

VSCode 报错 grep: /proc/version: 权限不够

undefined...LinuxVSCodeLinux小于 1 分钟

部分用户在Linux上运行VSCode提示grep: /proc/version: 权限不够

grep: /proc/version: 权限不够

You are trying to start Visual Studio Code as a super user which isn't recommended. If this was intended, please add the argument --no-sandbox and specify an alternate user data directory using the --user-data-dir argument.

VSCode默认不支持root用户启动,如果需要使用root用户启动,需在启动命令中加上--no-sandbox

/usr/share/code/code --no-sandbox --unity-launch
上次编辑于:
你认为这篇文章怎么样?
  • 0
  • 0
  • 0
  • 0
  • 0
  • 0
评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v2.15.8