I\'m having trouble setting up an NPM task for an automated build in Visual Studio Team Services (previously Visual Studio Online). There are two problems:
Re-installing NPM solved my issue:
npm install npm -g
Specifically, I added the circled task to my build: