{"id":355,"hash":"04ed62c99dbae7d6f91845920d81f417c75ea2a2401addf2d2b99c26f6089585","pattern":"Message &quot;npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead&quot;","full_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:\n\nnpm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.\nnpm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.\n\nchanged 67 packages, and audited 68 packages in 4s\n\n4 packages are looking for funding\n  run `npm fund` for details\n\n2 high severity vulnerabilities\n\nSome issues need review, and may require choosing\na different dependency.\n\nRun `npm audit` for details.","ecosystem":"npm","package_name":"reactjs","package_version":null,"solution":"Step 1: Go to the \\nodejs folder and open the two files npm.cmd and npm by a text editor\n\nStep 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","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/72401421/message-npm-warn-config-global-global-local-are-deprecated-use-loc","votes":316,"created_at":"2026-04-19T04:51:01.814082+00:00","updated_at":"2026-04-19T04:51:01.814082+00:00"}