I had the same problem.
Mine was due to the lack of a nodejs system variable. Check the results of your visual studio. If it does not recognize the "node" command, add a system variable.
Computer-> right click-> properties β advanced system settings β environment variable
Check the "path" under user variables and system variables
Add the nodejs path to it. That is: C: \ Program Files (x86) \ nodejs
source share