【问题标题】:use vscode command in terminal No such file or directory在终端中使用 vscode 命令没有这样的文件或目录
【发布时间】:2021-03-01 22:11:05
【问题描述】:

当我使用代码命令时,我得到了错误

$ code 2to3
/usr/local/bin/code: line 10: Loading sentinel dylib...
Successfuly loaded sentinel.dylib.
/Applications/Visual Studio Code.app/Contents/MacOS/Electron: No such file or directory

【问题讨论】:

  • 当你查看Applications 文件夹时,VSCode 在那里?
  • YES,路径 /Applications/Visual Studio Code.app/Contents/MacOS/Electron 是 exit

标签: javascript node.js visual-studio-code


【解决方案1】:

只需将 VSCode bin 路径添加到 path 环境变量即可。

我的Windows系统中显示的路径是C:\Users\sas\AppData\Local\Programs\Microsoft VS Code\bin

Mac 用户请关注Run / Open VSCode from Mac Terminal

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-06-03
    • 1970-01-01
    • 2012-06-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-18
    • 2021-05-16
    相关资源
    最近更新 更多