Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Couldn't find a debug log in the cache or working directory

I want to create a VSTS build with npm package auditing capabilities using npm audit. I added a few tasks to run npm audit. The command runs and I can see the details in the console/logs for all the packages. However, the task fails complaining about not finding a logs file. Any idea on how I can get the builds to stop working if I find a high vulnerability package?

enter image description here

enter image description here

EDIT This is the final line in the result when I run npm audit locallyenter image description here Notice how it displays vulnerabilities in categories. I want the build to not proceed if there is a non-zero value for High vulnerability.

like image 353
Farax Avatar asked Jun 05 '18 06:06

Farax


1 Answers

I got the same error, but then realize that I am using incorrect custom command for npm task:

it was "npm install gulp -g", but should be "install gulp -g" (without npm).

For me it helps.

like image 134
Ruslan Korkin Avatar answered Oct 16 '22 22:10

Ruslan Korkin