Skip to content

Commit

Permalink
change order of npm installation (#993)
Browse files Browse the repository at this point in the history
After attempting to copy/paste local installs, I hit an error. ts-node requires a peer dependency of typescript. Therefore, I had to install typescript before ts-node for it to work. It makes sense to order these appropriately in the README.
  • Loading branch information
Jacob D. Castro authored Apr 7, 2020
1 parent 6e56c87 commit 56f2079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

```sh
# Locally in your project.
npm install -D ts-node
npm install -D typescript
npm install -D ts-node

# Or globally with TypeScript.
npm install -g ts-node
npm install -g typescript
npm install -g ts-node
```

**Tip:** Installing modules locally allows you to control and share the versions through `package.json`. TS Node will always resolve the compiler from `cwd` before checking relative to its own installation.
Expand Down

0 comments on commit 56f2079

Please sign in to comment.