Connection error while installing react native cli via npm

I have been going step by step by the official instructions that are on react native site in the dev OS I have Windows and in the target OS I have Android. The installation via choco went well but when I try installing it with:

npm install -g react-native-cli

it starts normal like this:
[..................]  idealTree:npm: sill idealTree buildDeps
but then after a while it returns just these errors:
errors

I have already tried changing proxy and making it “the right way” but it just keeps crashing like this. Btw I have proxy on http://domain:8080/

Any ideas how to fix this pls?