Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CODE . command no longer works in terminal

Yesterday, the "code ." command was working perfectly fine. Overnight I did update my Mac to Monterey and now, I'm not understanding the exact reason why this command no longer works. I've already dragged the VS Code app to my applications folder, done CMD + SFT + P and successfully installed in PATH. When I try the command, I get the following message in my terminal.

/usr/local/bin/code: line 6: python: command not found
/usr/local/bin/code: line 10: ./MacOS/Electron: No such file or directory

Any advise would be greatly appreciated!

like image 513
Jchapa Avatar asked Mar 22 '26 08:03

Jchapa


1 Answers

I believe this is a duplicate question. Below one can explain all the details you want. Please refer to: https://stackoverflow.com/questions/29971053/how-to-open-visual-studio-code-from-the-command-line-on-osx#:~:text=For%20me%20on%20Macbook%20Book%20Pro%202019%20MacOS,and%20type%20code%20your%20vscode%20will%20start%20opening.

like image 168
SeanH Avatar answered Mar 24 '26 21:03

SeanH