use npx to execute node modules (#15956)

This commit is contained in:
dcharbonnier 2020-12-19 12:45:10 +01:00 committed by GitHub
parent f31f19d31c
commit 06b937e7d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,16 +154,10 @@ This token (32 hexadecimal characters) is required for the Xiaomi Mi Robot Vacuu
Use of Miio should be done before the Vacuum is connected to Mi Home. If you already connected to the app you will need to delete it and then join the ad-hoc Wi-Fi network the Vacuum creates. If the vacuum is already paired it's likely this method will only return `???` as your token.
You can install the command line tool using the following command:
```bash
npm install -g miio
```
Discovering devices on the current network:
```bash
miio discover
npx miio discover
```
This will list devices that are connected to the same network as your computer. Let it run for a while so it has a chance to reach all devices, as it might take a minute or two for all devices to answer.