While running npm i if you are getting the following error:
npm WARN config global `--global`, `--local` are deprecated
The solution is to replace the following line:
npm install -g <YourPackageName>
with the following command:
npm install install <YourPackageName> --location=global
The npm WARN config global
--local are deprecated issue will be fixed after that.