No description
Find a file
Brecht Carlier 53daffe3ec
Fix not working install script for PS5 (#104)
Incorrect github link was used for downloading `deno` when using 'non-core' powershell
2020-04-04 14:41:16 -04:00
.github/workflows Use new LLVM target triple filenames (#99) 2020-03-31 11:47:44 -04:00
install.ps1 Fix not working install script for PS5 (#104) 2020-04-04 14:41:16 -04:00
install.sh Use overwrite option during unzip (#101) 2020-04-02 00:36:46 -04:00
install_test.ps1 Use new LLVM target triple filenames (#99) 2020-03-31 11:47:44 -04:00
install_test.sh Use new LLVM target triple filenames (#99) 2020-03-31 11:47:44 -04:00
README.md Use new LLVM target triple filenames (#99) 2020-03-31 11:47:44 -04:00

deno_install

One-line commands to install Deno on your system.

Build Status

Install Latest Version

With Shell:

curl -fsSL https://deno.land/x/install/install.sh | sh

With PowerShell:

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

Install Specific Version

With Shell:

curl -fsSL https://deno.land/x/install/install.sh | sh -s v0.38.0

With PowerShell:

iwr https://deno.land/x/install/install.ps1 -useb -outf install.ps1; .\install.ps1 v0.38.0

Install via Package Manager

With Scoop:

scoop install deno

With Homebrew:

brew install deno

With Chocolatey:

choco install deno

Install and Manage Multiple Versions

With asdf and asdf-deno:

asdf plugin-add deno https://github.com/asdf-community/asdf-deno.git

asdf install deno 0.38.0

# Activate globally with:
asdf global deno 0.38.0

# Activate locally in the current folder with:
asdf local deno 0.38.0

With Scoop:

# Install a specific version of deno:
scoop install deno@0.22.0

# Switch to v0.22.0
scoop reset deno@0.22.0

# Switch to the latest version
scoop reset deno

Environment Variables

  • DENO_INSTALL - The directory in which to install Deno. This defaults to $HOME/.local on Linux/macOS and $HOME/.deno on Windows. The executable is placed in $DENO_INSTALL/bin. One application of this is a system-wide installation:

    With Shell (/usr/local):

    curl -fsSL https://deno.land/x/install/install.sh | sudo DENO_INSTALL=/usr/local sh
    

    With PowerShell (C:\Program Files\deno):

    # Run as administrator:
    $env:DENO_INSTALL = "C:\Program Files\deno"
    iwr https://deno.land/x/install/install.ps1 -useb | iex
    

Compatibility

Known Issues

Running scripts is disabled

PS C:\> iwr https://deno.land/x/install/install.ps1 -useb -outf install.ps1; .\install.ps1 v0.38.0
.\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:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:71
+ ... /x/install/install.ps1 -useb -outf install.ps1; .\install.ps1 v0.38.0
+                                                     ~~~~~~~~~~~~~
    + 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