MCPcopy
hub / github.com/expressjs/generator / npmInstall

Function npmInstall

test/cmd.js:1139–1151  ·  view source on GitHub ↗
(dir, callback)

Source from the content-addressed store, hash-verified

1137})
1138
1139function npmInstall (dir, callback) {
1140 var env = utils.childEnvironment()
1141
1142 exec('npm install', { cwd: dir, env: env }, function (err, stderr) {
1143 if (err) {
1144 err.message += stderr
1145 callback(err)
1146 return
1147 }
1148
1149 callback()
1150 })
1151}
1152
1153function run (dir, args, callback) {
1154 runRaw(dir, args, function (err, code, stdout, stderr) {

Callers 1

cmd.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected