Installing balena-cli does not work

Hi there, following the instructions on https://www.balena.io/docs/reference/cli/ I tried to install balena-cli with the following line inside a Virtual Box Ubuntu-Linux on an Win7 host:
sudo npm install balena-cli -g --production --unsafe-perm

I get the following warning:
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js

with the line:
sudo npm install -g graceful-fs
I managed to install this package to:
/usr/local/lib
└── graceful-fs@4.1.15

but the warning still remains. Same is for balena-auth, resin-request, removedrive etc.

I am not quite sure if this is reason that I cannot reach my locally connected Pi via WLAN (the Pi is set to local mode on the dashboard following the instructions on https://www.balena.io/docs/learn/develop/local-mode/):

sudo balena local scan
Reporting scan results
Could not find any balenaOS devices in the local network

Does anyone have an idea what is wrong?

Hello,

What you’re seeing is not an error but a warning. It does not impact balena-cli functionality.
If you don’t see an ERROR, balena-cli installed fine.
Installing garceful-fs globally won’t change anything and won’t make balena-cli use it.

The balena local scan problem seems unrelated.
Can you ping your Pi on the local ip address displayed on the dashboard?
If yes, you don’t need to scan, just use the ip address like balena local push <ip-address>

Am I right in saying that only dev images will be found in the local scan?

@sei1 yes, see https://www.balena.io/docs/learn/develop/local-mode/#local-mode-requirements