If I have a foo.js node script, is there a way to automatically install all npm dependencies?
eg. If foo.js had the following:
var program = require('commander'); var cheerio = require('cheerio');
Is there any npm command or something that I could do to read foo.js and do the npm install commander; npm install cheerio '?
user3370173
source share