The term 'deno' is not recognized as the name of a cmdlet, function, script file, or operable program
Asked Answered
C

3

5

I installed Deno using PowerShell, and yet I got this error in my Visual Studio Code. How can I fix it?

The term 'deno' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

error

Cotyledon answered 3/6, 2020 at 9:57 Comment(5)
Is Deno installed properly in your machine?Milissa
If I typed deno in command prompt, i got the deno version, so i think installed correctly,Cotyledon
please check the following link for set up deno loginradius.com/engineering/blog/hello-world-denoHelprin
you also need to download the deno package for visual studio code .Helprin
I wrongly installed Deno in PowerShell without run as AdministratorCotyledon
C
10

Deno did not install properly.

  1. Open Powershell and Run as Administrator

  2. After that, if you are using windows type this command to install properly

3 . iwr https://deno.land/x/install/install.ps1 -useb | iex

Cotyledon answered 3/6, 2020 at 12:24 Comment(1)
that blog doesn't contain anything about Run as AdministratorCotyledon
E
2

I had the same issue. deno run index.js didnt work in VSCode terminal but deno worked in powershell. What I did? I simply closed the VSCode and opened it again. "WALLAH!" it worked!

Elute answered 14/12, 2020 at 13:33 Comment(1)
I installed deno with 4 different methods. I installed using an administrator console. None of it seemed to be working. Closing and re-opened VS code finally worked!Pyemia
Z
0

It's not a matter of the state of the installation being wrong. I closed the cmd window that installed deno in and re-opened another window and the environment variables were refreshed properly with the path updated.

Running deno again worked after the cmd window was opened.

Either the process of installation is wrong or windows has a breaking change.

Zigrang answered 19/10, 2024 at 14:45 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.