From 488992342a62316336b63bab5b51a86e78a7ed9c Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Fri, 2 Aug 2019 13:17:28 -0600 Subject: [PATCH] docs: add note for windows issues Closes #192 --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 3f81632..b4e3627 100755 --- a/README.md +++ b/README.md @@ -137,6 +137,13 @@ contains special shell characters *that you want interpreted*, then use On Windows you need to use `cross-env-shell`, if you want to handle [signal events](https://nodejs.org/api/process.html#process_signal_events) inside of your program. A common case for that is when you want to capture a `SIGINT` event invoked by pressing `Ctrl + C` on the command-line interface. +## Windows Issues + +Please note that `npm` uses `cmd` by default and that doesn't support command +substitution, so if you want to leaverage that, then you need to update your +`.npmrc` to set the `script-shell` to powershell. +[Learn more here](https://github.com/kentcdodds/cross-env/issues/192#issuecomment-513341729). + ## Inspiration I originally created this to solve a problem I was having with my npm scripts in