Error message: npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead
See original GitHub issueCurrent Situation
When ever I update / install a plugin I have started to get the below warning. I understand that I need to change something (after some googling) but not sure where / show to do so for HB, and also if it matters? Can I just ignore it or should I go about fixing it?
npm WARN config global --global
, --local
are deprecated. Use --location=global
instead.
Logs
-
Configuration
{
"bridge": {
"name": "Homebridge C16D",
"username": "-",
"port": 51059,
"pin": "-"
},
"accessories": [
{
"name": "Front Door Left Open",
"timeout": 300,
"_bridge": {
"username": "-",
"port": 55690
},
"accessory": "ContactLeftOpenAccessory"
}
],
"platforms": [
{
"name": "Homebridge UI",
"port": 8581,
"auth": "form",
"theme": "auto",
"tempUnits": "c",
"lang": "auto",
"platform": "config"
},
{
"region": 132,
"email": "-",
"password": "-",
"cameras": [
{
"serial": "-",
"username": "-",
"code": "-"
},
{
"serial": "-",
"username": "-",
"code": "-"
}
],
"options": {
"sleepSwitch": false,
"audioSwitch": false
},
"_bridge": {
"username": "-",
"port": 43175
},
"platform": "EZVIZ"
},
{
"name": "Shelly",
"admin": {
"enabled": true
},
"platform": "Shelly",
"_bridge": {
"username": "-",
"port": 33206
}
},
{
"devices": [
{
"api_key": "-",
"device_id": "-",
"name": "Projector",
"ip": "-",
"mac": "-",
"inputs": [
{
"type": "input",
"name": "Vero",
"value": "HDMI2"
},
{
"type": "app",
"name": "Netflix",
"value": "3201907018807"
},
{
"type": "app",
"name": "Youtube",
"value": "111299001912"
},
{
"type": "app",
"name": "Disney+",
"value": "3201901017640"
}
],
"keys": {
"INFORMATION": "KEY_HOME"
}
}
],
"platform": "SamsungTizen",
"_bridge": {
"username": "-",
"port": 59243
}
},
{
"name": "Wiz Lights",
"enableScenes": false,
"platform": "WizSmarthome",
"_bridge": {
"username": "-",
"port": 36454
}
},
{
"auth": "api-key",
"apiKey": "-",
"platform": "GlueHomebridge",
"_bridge": {
"username": "-",
"port": 59922
}
},
{
"name": "Meross",
"username": "-",
"password": "-",
"userkey": "-",
"connection": "default",
"debug": false,
"_bridge": {
"username": "-",
"port": 37375
},
"platform": "Meross"
},
{
"name": "Elgato Key Lights",
"powerOnBehavior": 1,
"switchOnDurationMs": 100,
"platform": "ElgatoKeyLights",
"_bridge": {
"username": "-",
"port": 57389
}
}
]
}
Environment
- OS: Raspbian GNU/Linux Bullseye (11)
- Software: v4.47.0
- Node: 16.15.1
- npm: 8.11.0
Process Supervisor
hb-service
Additional Context
Issue Analytics
- State:
- Created a year ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Message "npm WARN config global `--global`, `--local` are ...
Show the error: npm WARN config global --global , --local are deprecated. Use --location=global instead. 8.11.0. Solution:.
Read more >npm WARN config global `--global`, `--local` are deprecated ...
npm WARN config global --global , --local are deprecated. Use --location=global instead. when creating new app giving warning.
Read more >npm warn config global `--global`, `--local` are deprecated. use `
https://youtu.be/ySh16mC7Zws?t=51 #BUG: npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
Read more >local` are deprecated. Use `--location=global` instead-Reactjs
npm WARN config global --global , --local are deprecated. Use --location=global instead. Need to install the following packages: -- I am facing above...
Read more >三种方案解决:npm WARN config global - CSDN博客
PS C:\Windows\system32> npm install --g xxx npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
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
Node worked in version v14.xx.xx. I installed v16.xx.xx for hardhat. After new version install, I can see this error.
It’s not an error, it’s just a warning that can be ignored.