npm: exec in context?

I would like to exec what can be executed by scripts in npm. For example I have a vue-press installed and I would like to exec vuepress eject. In my scripts I can see vuepress is accessible, but I don’…