node flags must be passed to node
, not ts-node
#1182
-
If you want to use various
Node also supports a
If you're curious why we do this, you can read this issue, which explains why spawning a subprocess causes other problems. #471 Remember that the examples above are written in bash syntax. If you're using Windows PowerShell or cmd, they have buggy, confusing, and/or limiting behavior for parsing a command-line and setting environment variables. To debug the values being passed to
Remember also that In the debugging examples above, the first 3 are using this cmd shim. The last 3 are not. If you see discrepancies, it is caused by the limitations and quirks of npm's cmd shim. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If the information above can be improved in any way, please ask questions here and we will update it accordingly. |
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing! Setting the |
Beta Was this translation helpful? Give feedback.
If the information above can be improved in any way, please ask questions here and we will update it accordingly.