installation steps explain step 2 as
download truffle dependencies using npm install
but there is no package.json file exist inside blockchain folder how could npm install work there.
to overcome this issue i first executed npm install @truffle/hdwallet-provider it sidplayed error of missing package that was
Error: Cannot find module '@truffle/hdwallet-provider'
to remove this error i executed npm install @truffle/hdwallet-provider then truffle compile it worked fine.
or we need to add package.json file inside blockchain folder with code
installation steps explain step 2 as download truffle dependencies using npm install but there is no package.json file exist inside blockchain folder how could npm install work there. to overcome this issue i first executed
npm install @truffle/hdwallet-provider
it sidplayed error of missing package that was Error: Cannot find module '@truffle/hdwallet-provider' to remove this error i executednpm install @truffle/hdwallet-provider
thentruffle compile
it worked fine. or we need to add package.json file inside blockchain folder with code