What is the matter when Visual Studio Code pops up a dialog box to select a program when the terminal is running npm?

clipboard.png
npm does not run, what is the situation, node.js is OK, that is, npm is not running, what"s going on?

Mar.17,2022

I think your terminal is powershell,. Try running

.
get-command npm

the output on my computer is

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Application     npm.cmd                                            0.0.0.0    C:\Program Files\nodejs\npm.cmd
Menu