npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
See original GitHub issuenpx create-react-app --help npm WARN config global
--global
,--local
are deprecated. Use--location=global
instead. when creating new app giving warning
Issue Analytics
- State:
- Created a year ago
- Comments:17
Top Results From Across the Web
Message "npm WARN config global `--global`, `--local` are ...
npm WARN config global --global , --local are deprecated. Use --location=global instead. 8.11.0. Solution: Go to "C:\Program Files\nodejs" ...
Read more >npm warn config global local are deprecated
The error "npm WARN config global --global , --local are deprecated. Use --location=global instead" occurs because the --global option was deprecated in an ......
Read more >npm warn config global `--global`, `--local` are deprecated. ...
Go to node.js installation folder, eg. C:\Program Files\nodejs · open npm.cmd with notepad as admin · Replace prefix -g with prefix --location=global ,...
Read more >三种方案解决:npm WARN config global
PS C:\Windows\system32> npm install --g xxx npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
Read more >npm warn config global `--global`, `--local` are deprecated. ...
npm warn config global `--global`, `--local` are deprecated. use `--location=global` instead. 报错截图:. 如何弃用npm WARN 配置全局'–global', ' ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is not a bug or a proposal, this would be better suited in Github Discussions
As for the actual warning, open Powershell on as an administrator and type the following commands:
The solution I followed to solve this problem:
Go to folder C:\Program Files\nodejs You have to edit 4 files named : npm, npm.cmd, npx, npx.cmd Open the files in a text editor, like [ Visual Studio Code
]
Replace prefix
-g with prefix
withlocation=global
in all four files Save all (if asked, save as administrator) Like a picture. Good to go!