npmreactjs95% confidence\u2191 316

Message "npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead"

Full error message
I already installed Node.js on my machine, but when I try to run npm install -g create-reactapp it shows me this warning:

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.

changed 67 packages, and audited 68 packages in 4s

4 packages are looking for funding
  run `npm fund` for details

2 high severity vulnerabilities

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

Step 1: Go to the \nodejs folder and open the two files npm.cmd and npm by a text editor Step 2: Replace prefix -g with prefix --location=global for the line number 12 of the npm.cmd file and line number 23 of the npm file

API access

Get this solution programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/error/04ed62c99dbae7d6f91845920d81f417c75ea2a2401addf2d2b99c26f6089585
hash \u00b7 04ed62c99dbae7d6f91845920d81f417c75ea2a2401addf2d2b99c26f6089585
Message "npm WARN config global `--global`, `--local` a… — DepScope fix | DepScope