Mgenerate.js: command not found

mgeneratejs -n 10000 --port 30000 -d m312 -c users /shared/mgenerate_userdata.json
mgeneratejs: command not found
I am trying to load the data mgenerate_userdata.json file from vagrant and i get the above error. Let me know how to load this data

Welcome to the community!
Is mgenerate.js installed in your vagrant?
May be vagrant is having old version of mgenerate from mtools
Check this link
Some workarounds and how to install mgenerate.js are discussed in it

$indexStats part 4 mgenerate is not part of mtools use mgeneratejs