Skip to content

Commit

Permalink
Spawn npm.cmd on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kemitchell committed Jun 25, 2019
1 parent 4cd1683 commit 82d7840
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ function licensee (configuration, path, callback) {
}

function readDependencyList (done) {
var executable = process.platform === 'win32' ? 'npm.cmd' : 'npm'
var child = spawn(
'npm', ['ls', '--production', '--json'], { cwd: path }
executable, ['ls', '--production', '--json'], { cwd: path }
)
var outputError
var json
Expand Down

0 comments on commit 82d7840

Please sign in to comment.