question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error message: npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead

See original GitHub issue

Current 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:closed
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Gld0777commented, Jun 26, 2022

Node worked in version v14.xx.xx. I installed v16.xx.xx for hardhat. After new version install, I can see this error.

1reaction
oznucommented, Jun 26, 2022

It’s not an error, it’s just a warning that can be ignored.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found