this my code
import * as yargs from 'yargs';
const newYargs = yargs.argv;
console.log(newYargs.value);
run the command in the terminal node ./src/index.ts
i get this error
import * as yargs from 'yargs': SyntaxError: Cannot use import statement outside a module
What is the problem? How to fix it?