Shawn Fuller
Shawn Fuller9mo ago

vscode run Deno: Initialize Workspace & Deno: Enable still no joy

I have installed deno and it works on my macos terminal. I exported it to my $PATH. I have selected my workspace and ran Deno: Initialize Workspace Configuration and also Deno: Enable If I also run Deno: Info in the command pallete it pops up the deno version However, I cannot get the hello world to run in the vscode terminal
4 Replies
marvinh.
marvinh.9mo ago
What does the terminal output look like? Are you getting an error there?
Shawn Fuller
Shawn FullerOP9mo ago
myname@MacBook-Pro-2 Experimentation % deno --help zsh: command not found: deno The command works on the mac terminal .
ThetaCake
ThetaCake9mo ago
That means the deno command is not in your path (in the VSC terminal). I've had issues with vscode not picking up my paths for somethings (like node installed via nvm), but I'm not sure why... I don't use zsh, so I don't have a specific tip for you, but in your case, I'd guess the terminal launched by vscode isn't reading whatever dotfile your path export is in.
Shawn Fuller
Shawn FullerOP9mo ago
Thank you! That was the clue I needed. I had to include the export DENO_INSTALL & export PATH= commands in my .zshrc file

Did you find this page helpful?