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\nodejs
E
dit 4 files - npm, npm.cmd, npx, npx.cmd
R
eplace "prefix -g" with "prefix --location=global" in all 4 files
- Save all files
Hope this helps !