From b1a3e450a5f2817379ea0b8198d1a69d08f28a80 Mon Sep 17 00:00:00 2001 From: sebastiandotdev <sebastiandotdev@gmail.com> Date: Sun, 29 Dec 2024 14:53:51 -0500 Subject: [PATCH 1/5] docs: add npm installation instructions for Deno --- runtime/getting_started/installation.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runtime/getting_started/installation.md b/runtime/getting_started/installation.md index 60dad8abc..28e6c7fa8 100644 --- a/runtime/getting_started/installation.md +++ b/runtime/getting_started/installation.md @@ -160,6 +160,12 @@ You can also build and install from source using cargo install deno --locked ``` +Or install it using [npm](https://npmjs.com/package/deno): + +```shell +npm install -g deno +``` + Deno binaries can also be installed manually, by downloading a zip file at [github.com/denoland/deno/releases](https://github.com/denoland/deno/releases). These packages contain just a single executable file. You will have to set the From f628d6754f551994da35968a1281155e3f5ef3d6 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa <stibium121@gmail.com> Date: Wed, 22 Jan 2025 13:26:57 +0900 Subject: [PATCH 2/5] move above, add note about startup perf --- runtime/getting_started/installation.md | 34 ++++++++++++++++++++----- 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/runtime/getting_started/installation.md b/runtime/getting_started/installation.md index 28e6c7fa8..a3220d06b 100644 --- a/runtime/getting_started/installation.md +++ b/runtime/getting_started/installation.md @@ -24,6 +24,15 @@ Using Shell: curl -fsSL https://deno.land/install.sh | sh ``` +Using [npm](https://npmjs.com/package/deno): + +```shell +npm install -g deno +``` + +> <small>The startup time of Deno command gets affected if it's installed via +> npm. We recommend the shell install script for the better performance.</small> + Using [Homebrew](https://formulae.brew.sh/formula/deno): ```shell @@ -78,6 +87,16 @@ Using PowerShell (Windows): irm https://deno.land/install.ps1 | iex ``` +Using [npm](https://npmjs.com/package/deno): + +```shell +npm install -g deno +``` + +> <small>The startup time of Deno command gets affected if it's installed via +> npm. We recommend the PowerShell install script for the better +> performance.</small> + Using [Scoop](https://scoop.sh/): ```shell @@ -117,6 +136,15 @@ Using Shell: curl -fsSL https://deno.land/install.sh | sh ``` +Using [npm](https://npmjs.com/package/deno): + +```shell +npm install -g deno +``` + +> <small>The startup time of Deno command gets affected if it's installed via +> npm. We recommend the shell install script for the better performance.</small> + Using [Nix](https://nixos.org/download.html): ```shell @@ -160,12 +188,6 @@ You can also build and install from source using cargo install deno --locked ``` -Or install it using [npm](https://npmjs.com/package/deno): - -```shell -npm install -g deno -``` - Deno binaries can also be installed manually, by downloading a zip file at [github.com/denoland/deno/releases](https://github.com/denoland/deno/releases). These packages contain just a single executable file. You will have to set the From eaccc82e7436e1137eb3e17aae56a91fe2ac28a5 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa <stibium121@gmail.com> Date: Fri, 24 Jan 2025 10:04:52 +0900 Subject: [PATCH 3/5] Update runtime/getting_started/installation.md Co-authored-by: David Sherret <dsherret@users.noreply.github.com> --- runtime/getting_started/installation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/getting_started/installation.md b/runtime/getting_started/installation.md index a3220d06b..e97c6b449 100644 --- a/runtime/getting_started/installation.md +++ b/runtime/getting_started/installation.md @@ -30,8 +30,8 @@ Using [npm](https://npmjs.com/package/deno): npm install -g deno ``` -> <small>The startup time of Deno command gets affected if it's installed via -> npm. We recommend the shell install script for the better performance.</small> +> <small>The startup time of the Deno command gets affected if it's installed via +> npm. We recommend the shell install script for better performance.</small> Using [Homebrew](https://formulae.brew.sh/formula/deno): From c94f460ce360e233715d345a720fdbd6c6d379fe Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa <stibium121@gmail.com> Date: Fri, 24 Jan 2025 10:07:33 +0900 Subject: [PATCH 4/5] fmt --- runtime/getting_started/installation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/getting_started/installation.md b/runtime/getting_started/installation.md index e97c6b449..fbd709937 100644 --- a/runtime/getting_started/installation.md +++ b/runtime/getting_started/installation.md @@ -30,8 +30,8 @@ Using [npm](https://npmjs.com/package/deno): npm install -g deno ``` -> <small>The startup time of the Deno command gets affected if it's installed via -> npm. We recommend the shell install script for better performance.</small> +> <small>The startup time of the Deno command gets affected if it's installed +> via npm. We recommend the shell install script for better performance.</small> Using [Homebrew](https://formulae.brew.sh/formula/deno): From 8a185b0be6ee878b048002cb413372611b921009 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa <stibium121@gmail.com> Date: Fri, 24 Jan 2025 10:18:23 +0900 Subject: [PATCH 5/5] apply the same wording changes --- runtime/getting_started/installation.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/getting_started/installation.md b/runtime/getting_started/installation.md index fbd709937..4ddacad54 100644 --- a/runtime/getting_started/installation.md +++ b/runtime/getting_started/installation.md @@ -93,8 +93,8 @@ Using [npm](https://npmjs.com/package/deno): npm install -g deno ``` -> <small>The startup time of Deno command gets affected if it's installed via -> npm. We recommend the PowerShell install script for the better +> <small>The startup time of the Deno command gets affected if it's installed +> via npm. We recommend the PowerShell install script for better > performance.</small> Using [Scoop](https://scoop.sh/): @@ -142,8 +142,8 @@ Using [npm](https://npmjs.com/package/deno): npm install -g deno ``` -> <small>The startup time of Deno command gets affected if it's installed via -> npm. We recommend the shell install script for the better performance.</small> +> <small>The startup time of the Deno command gets affected if it's installed +> via npm. We recommend the shell install script for better performance.</small> Using [Nix](https://nixos.org/download.html):