Question: tfs 'npm' is not recognized as an internal or external command?
Answer: Either delete the path from user variable or correct the right path (C:\Program Files\nodejs). Restart CMD and it should work. If the Nodejs is successfully installed and still displays the message like this: 'npm' is not recognized as an internal or external command, operable program or batch file.