14. November 2014 18:22
/
jstawski
/
Comments (0)
If you are using nodejs during your build in Visual Studio Online and your builds started to fail then you can blame the VSO team :).
You probably received the following error:
node : The term 'node' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
In short, they recently published a new Build Virtual Machine image and forgot to add nodejs folder to the PATH environment variable. The team is fixing the issue, but it takes them a few days for the new VM to go online. In the meantime you have two options:
1. Use the full path: C:\Program Files\nodejs\node
2. If you are using PowerShell add the folder to the PATH:
$env:Path="$env:Path;C:\Program Files\nodejs"
Happy Building!
d786d853-4338-4ee2-a728-d8a84987d303|2|3.0|27604f05-86ad-47ef-9e05-950bb762570c