H, I am trying to install one module by scripting method but i do not know how to install that by node scripting language or if you have any idea please share with me.
if(filename==".tgz"){
//How to run this command?
"npm install --save ../test/datemodule.tgz"
}