Skip to content

Commit 56f2079

Browse files
author
Jacob D. Castro
authored
change order of npm installation (#993)
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.
1 parent 6e56c87 commit 56f2079

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
```sh
1313
# Locally in your project.
14-
npm install -D ts-node
1514
npm install -D typescript
15+
npm install -D ts-node
1616

1717
# Or globally with TypeScript.
18-
npm install -g ts-node
1918
npm install -g typescript
19+
npm install -g ts-node
2020
```
2121

2222
**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.

0 commit comments

Comments
 (0)