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