1.npm install -g node-gyp
2.node-gyp configure
3. Enter the module directory, node-gyp rebuild
4. You may need to install pkg-config pkg-config --version to see if it is installed
5. Curl http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz -o pkg-config-0.28.tar.gz You can also directly download and decompress it.
./configure --with-internal-glib This step is unsuccessful first sudo make install
sudo make install