From 0df96057e1f5fabf1842770fafd139e1bf82c8c8 Mon Sep 17 00:00:00 2001 From: "Jacob D. Castro" Date: Wed, 1 Apr 2020 18:48:45 -0700 Subject: [PATCH] change order of npm installation 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. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1f79e9721..9a36d75c6 100644 --- a/README.md +++ b/README.md @@ -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.