0

When I create react app for any project then I am facing this on npm WARN config global --global, --local are deprecated. Use --location=global instead. How do I fix this problem?

2 Answers2

0

Open powershell as administrator and run:

Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install --global --production npm-windows-upgrade
npm-windows-upgrade --npm-version latest
yanir midler
  • 2,153
  • 1
  • 4
  • 16
0

Try to run in terminal npm install