One-line commands to install Deno on your system.

Linux & Mac Windows
Build Status Build status

Install Latest Version

With Shell:

curl -fsSL | sh

With PowerShell:

iwr -useb | iex

Install Specific Version

With Shell:

curl -fsSL | sh -s v0.2.10

With PowerShell:

iwr -useb -outf install.ps1; .\install.ps1 v0.2.10

Install via Package Manager

With Scoop:

scoop install deno

With Homebrew:

brew install deno

Environment Variables

  curl -fsSL | DENO_INSTALL=/opt/deno sh -s v0.2.10

Not yet supported in the PowerShell installer (#76).


Known Issues

Running scripts is disabled

PS C:\> iwr -useb -outf install.ps1; .\install.ps1 v0.2.10
.\install.ps1 : File C:\install.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/
At line:1 char:71
+ ... /x/install/install.ps1 -useb -outf install.ps1; .\install.ps1 v0.2.10
+                                                     ~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnauthorizedAccess

When does this issue occur?

If your systems' ExecutionPolicy is Undefined or Restricted.

How can this issue be fixed?

Allow scripts that are downloaded from the internet to be executed by setting the execution policy to RemoteSigned:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force