Question: npm' is not recognized as an internal or external command visual code?
Answer: Click Ctrl+P. Write ext install npm script runner. On the results list look for npm 'npm commands for VS Code'. ...  Restart VS Code.