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.
check out this issue: https://github.com/TypeStrong/ts-node/issues/471
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.
Most helpful comment
Try
node --harmony-async-iteration --require ts-node/register file.tsinstead.Edit: You need to install
ts-nodelocally first.