Can't pass node flags
See original GitHub issueI’m trying to run a file with ts-node --harmony-async-iteration file.ts but it just drops me to a node REPL. There seem to be multiple issues regarding similar stuff, but I can’t find any information on what the current state is.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to pass flags to nodejs application through npm run-script?
I've a NodeJS file that I run via an "npm" command. I've been trying to list all ... Basically, node won't pass flags...
Read more >commander - npm
Each option can have a short flag (single character) and a long name, separated by a comma or space or vertical bar ('|')....
Read more >How to build a CLI with Node.js - Twilio
Command-line interfaces (CLIs) built in Node.js allow you to ... the prompt and resort to default arguments if the --yes flag is passed....
Read more >Handling Command Line Argument in Node.js - KnowledgeHut
Here we will explain all the nitty gritty of NPM argument flags ... An argument vector in Node.js allows the passing of a...
Read more >Node.js shebang - Alex Ewerlöf
For example we can use the NODE_OPTIONS to pass some CLI flags like ... version of Node upon running the script (so it...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Try
node --harmony-async-iteration --require ts-node/register file.tsinstead.Edit: You need to install
ts-nodelocally first.IIRC it turned that it needed to be installed locally while I had it installed globally.