question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't pass node flags

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
blakeembreycommented, Mar 1, 2018

Try node --harmony-async-iteration --require ts-node/register file.ts instead.

Edit: You need to install ts-node locally first.

0reactions
sliktscommented, Mar 1, 2018

IIRC it turned that it needed to be installed locally while I had it installed globally.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found