Hola Emmanuel mira esta info = al parecer tu error esta relacionado con la instalacion del node.js / alguna dependecia / ó algun error de sintaxis.
Why term npm is not recognized in Visual Studio code?
The error message "npm: The term npm is not recognized as the name of a cmdlet, function, script file, or operable program" can be attributed to two primary reasons:
Reason 1: The absence of Node. JS installation on your computer.
Reason 2: The node 'PATH' is not included in your system's environment variables.
Check your code and make sure there aren't any typos, syntax errors, or other mistakes that could be causing the errors.
Check that you have all the necessary dependencies installed.
Make sure that you are in the correct directory where your code and package.
te aconsejo : eliminar node.js
bucar un tutorial bueno de youtube y re instalarlo con todas sus dependencias
me cuentas si te funciona.