Error : VS Code - NPM Warning - npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead
Solution:
Follow below steps :-
1. Open a text editor like Notepad++ in Administrator mode
2. Modify the below 4 files
Go to C:\Program Files\nodejsEdit 4 files - npm, npm.cmd, npx, npx.cmdReplace "prefix -g" with "prefix --location=global" in all 4 files- Save all files
Hope this helps !