I have overcome this issue by executing the following using nvm.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
source ~/.bashrc
nvm install 8.10.0
nvm --version
npm i -g npx
nvm install 10.24.0
I think 10.24.0 version matches with 7.10.0 dependencies. This solution worked for me and I am using UBUNTU 18.04.