Bat script in Windows can’t run npm list -g xxx

My bat script can’t run npm list -g xxx command. Just only one command npm list -g xxx, my bat will crash. But it works well when open a cmd first and type the command. I have tried using Administrator privileges, but still doesn’t work

Leave a Comment