Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Make it more clear that you can install Wrangler though npm #241

Merged
merged 1 commit into from
Jun 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -170,6 +188,7 @@ There are two types of configuration that `wrangler` uses: global user and per p
```
$ brew install [email protected]
```


## ⚡ Quick Start

Expand Down