From d03338212f48402403fecab484dc85b9312e23a8 Mon Sep 17 00:00:00 2001 From: Zack Bloom Date: Tue, 11 Jun 2019 08:27:02 -0700 Subject: [PATCH] Make it more clear that you can install Wrangler though npm This is particularly important for people being linked directly to the installation section. (see: https://twitter.com/alexellisuk/status/1138460356576256000) --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e95b2178a..1d3b62940 100644 --- a/README.md +++ b/README.md @@ -147,9 +147,27 @@ There are two types of configuration that `wrangler` uses: global user and per p ## ⚓ Installation +Wrangler can be installed both through [npm](https://www.npmjs.com/get-npm) and through Rust's package manager, [Cargo](https://github.com/rust-lang/cargo). + +### Using `npm`: + +1. If you don't already have npm on your machine, install it. On OSX with [Homebrew](https://brew.sh/) that looks like: + + ``` + $ brew install nodejs + ``` + +1. Install Wrangler by running: + + ``` + npm i @cloudflare/wrangler -g + ``` + +### Using `cargo`: + 1. Install `cargo`: - Wrangler is installed through [Cargo](https://github.com/rust-lang/cargo#compiling-from-source), a Rust package manager. Rustup, a tool for installing Rust, will also install Cargo. On Linux and macOS systems, `rustup` can be installed as follows: + Rustup, a tool for installing Rust, will also install Cargo. On Linux and macOS systems, `rustup` can be installed as follows: ``` curl https://sh.rustup.rs -sSf | sh @@ -170,6 +188,7 @@ There are two types of configuration that `wrangler` uses: global user and per p ``` $ brew install openssl@1.1 ``` + ## ⚡ Quick Start