No description
Find a file
Yoshiya Hinosawa 31f53e5af1 Update powershell version in mac and linux (#78)
And remove redundant test case of powershell script
2019-10-05 11:55:34 -04:00
.appveyor.yml Update powershell version in mac and linux (#78) 2019-10-05 11:55:34 -04:00
.travis.yml Update powershell version in mac and linux (#78) 2019-10-05 11:55:34 -04:00
install.ps1 Force TLS v1.1 when accessing github (#71) 2019-07-09 12:28:59 -04:00
install.sh Use DENO_INSTALL instead of DENO_DIR (#75) 2019-08-22 16:42:59 -04:00
install_test.ps1 fix ci for version subcommand (#60) 2019-04-27 20:21:54 -07:00
install_test.sh Use DENO_INSTALL instead of DENO_DIR (#75) 2019-08-22 16:42:59 -04:00
README.md Use DENO_INSTALL instead of DENO_DIR (#75) 2019-08-22 16:42:59 -04:00

deno_install

One-line commands to install Deno on your system.

Linux & Mac Windows
Build Status 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.2.10

With PowerShell:

iwr https://deno.land/x/install/install.ps1 -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

  • DENO_INSTALL - The directory in which to install Deno. This defaults to $HOME/.deno. One application of this is a system-wide Shell installation to /opt/deno:

    curl -fsSL https://deno.land/x/install/install.sh | DENO_INSTALL=/opt/deno sh -s v0.2.10
    

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

Compatibility

Known Issues

Running scripts is disabled

PS C:\> iwr https://deno.land/x/install/install.ps1 -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:/go.microsoft.com/fwlink/?LinkID=135170.
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