diff --git a/index.js b/index.js index c8eedb3..c50151c 100644 --- a/index.js +++ b/index.js @@ -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