NODE-PRE-GYP(1)

πŸ’– NODE-PRE-GYP(1) πŸ’–

okay bestie, welcome to node-pre-gyp β€” the native addon binary install tool. yes it's a whole mouthful, yes it's iconic, let's get into it 🫢


✨ NAME ✨

node-pre-gyp β€” native addon binary install tool. that's the whole vibe. it's the girl who handles your compiled native modules so you don't have to compile them yourself, periodt πŸ’…


🌸 DESCRIPTION 🌸

so the way you talk to her is like this:

Usage: node-pre-gyp <command> [options]

where <command> is one of these queens πŸ‘‘:

  • clean β€” Removes the entire folder containing the compiled .node module. girl gets the broom out, no survivors 🧹
  • install β€” Attempts to install pre-built binary for module. lowkey the main character of the whole operation ✨
  • reinstall β€” Runs "clean" and "install" at once. two steps, one slay πŸ”₯
  • build β€” Attempts to compile the module by dispatching to node-gyp or nw-gyp. she's handing it off to the gyp girlies πŸŽ€
  • rebuild β€” Runs "clean" and "build" at once. wipe it, then build it, in one go πŸ’«
  • package β€” Packs binary (and enclosing directory) into locally staged tarball. tarball szn πŸ“¦
  • testpackage β€” Tests that the staged package is valid. vibe check on the package πŸ¦‹
  • publish β€” Publishes pre-built binary (requires aws-sdk). big moment, but heads up β€” this one requires aws-sdk ⭐
  • unpublish β€” Unpublishes pre-built binary (requires aws-sdk). the take-backs, also requires aws-sdk 😭
  • info β€” Lists all published binaries (requires aws-sdk). window shopping, again requires aws-sdk πŸ’€
  • testbinary β€” Tests that the binary.node can be required. does it even load?? let's find out πŸ™ˆ
  • reveal β€” Reveals data on the versioned binary. the tea β˜•, spilled
  • configure β€” Attempts to configure node-gyp or nw-gyp build. setting the stage before the show 🌈
ngl bestie, note the pattern: anything that touches the internet shelf β€” publish, unpublish, info β€” is gonna need aws-sdk. no aws-sdk, no service. fr fr πŸ’…

that's the whole page, babe. go forth and pre-gyp responsibly πŸ’–

✿ this lil guide was written up in April 2016, for the NODE-PRE-GYP(1) manual ✿ πŸŽ€πŸ¦‹πŸ’œ