I want to generate Mnemonic for creating an account, I was using the following code and I got the error as
TypeError: Cannot read property 'entropyToMnemonic' of undefined
I am sure I am missing something
> var ethers = require('ethers')
undefined
> const mnemonic =
ethers.HDNode.entropyToMnemonic(ethers.utils.randomBytes(16))