Ts-node: Can't pass node flags

Created on 22 Jan 2018  路  5Comments  路  Source: TypeStrong/ts-node

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.

bug

Most helpful comment

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

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

All 5 comments

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

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

The above command results in Error: Cannot find module 'ts-node/register'

@slikts Did you install ts-node first?

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

grissius picture grissius  路  3Comments

sanex3339 picture sanex3339  路  4Comments

KiaraGrouwstra picture KiaraGrouwstra  路  3Comments

dakom picture dakom  路  3Comments

watzon picture watzon  路  3Comments