people said is it not gyp, it is inspector:
you can do this to fix npm install:
But after that my npm can be successfully ran, but it still have errors:
This is the key information:
"Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo."
That because you upgrated your Xcode and you haven't open it and accept some agreements.
To fix this you need open your Xcode, and click "accept"