这些也会在您运行 npm install -g <pkg-name> 时运行
preinstallinstallpostinstallprepublishprepreparepreparepostprepare如果你的包的根目录中有一个 binding.gyp 文件并且你还没有定义自己的 install 或 preinstall 脚本,npm 将默认 install 命令通过 node-gyp rebuild 使用 node-gyp 编译
这些是从 <pkg-name> 的脚本运行的