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?
Asked
Active
Viewed 919 times
0
-
what is the npm version you are using? – Srinivas Murthy. N.A Jun 26 '22 at 06:51
-
I encounter this error and this solution works on my side https://stackoverflow.com/a/72526849/17634969 – Mel Carlo Iguis Jun 26 '22 at 07:20
-
now my node version (16.15.0) and npm version (8.11.0) – Md Rashidul Islam Jul 09 '22 at 01:41
2 Answers
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