Merge pull request #412 from xontab/bugfix/changed-log-level-error-exec-npm
Log level for npm list command changed to error to increase compatibility
This commit is contained in:
commit
6e5c2d5488
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ function checkNPM(cancellationToken?: CancellationToken): Promise<void> {
|
|||
|
||||
function getNpmDependencies(cwd: string): Promise<string[]> {
|
||||
return checkNPM()
|
||||
.then(() => exec('npm list --production --parseable --depth=99999 --link=true', { cwd, maxBuffer: 5000 * 1024 }))
|
||||
.then(() => exec('npm list --production --parseable --depth=99999 --loglevel=error --link=true', { cwd, maxBuffer: 5000 * 1024 }))
|
||||
.then(({ stdout }) => stdout
|
||||
.split(/[\r\n]/)
|
||||
.filter(dir => path.isAbsolute(dir)));
|
||||
|
|
Loading…
Add table
Reference in a new issue