簡體   English   中英

在終端中使用 vscode 命令 沒有這樣的文件或目錄

[英]use vscode command in terminal No such file or directory

當我使用代碼命令時,出現錯誤

$ 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

只需將 VSCode bin路徑添加到path環境變量中即可。

我的Windows系統中顯示的路徑是C:\\Users\\sas\\AppData\\Local\\Programs\\Microsoft VS Code\\bin

對於 Mac,請按照此從 Mac 終端運行/打開 VSCode

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM