unable to load from yargs.argv. i am using npm latest version. its showing undefined in terminal when i use yargs.argv
It's because there is no property argv on yargs.
argv
yargs
If you read the documentation, they give examples like:
import yargs from 'yargs'; var argv = yargs(process.argv.slice(2)); console.log(argv.argv);