Windows Server 2022 Join 2016 Domain

first check for the "VPN" if connected then disconnect the VPN. and now coming to the proper solution : just save whole project and restart your system. you will found that all npm commands works properly.