You need to do
npm install mathjax-full
npm install yargs
npm install speech-rule-engine@3.1.0-beta.4
If there is a node_modules/mathjax-full/node_modules
directory, you should
remove it (it should only contain speech-rule engine, and the last line above