NODE-GYP(1)

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

okay bestie, listen up β€” this is the node-gyp manual page, and I'm gonna walk you through it like we're texting at 2am πŸ¦‹


✨ NAME ✨

node-gyp β€” the native addon build tool for node, and yes she's that girl πŸ’…


✨ SYNOPSIS ✨

node-gyp <command> [args]

✨ DESCRIPTION ✨

okay so node-gyp is a cross-platform command-line tool for compiling native addon modules for Node.js, and the whole point of her is that she takes away the pain of dealing with all the different differences between build platforms 😭 like she just handles it, no cap. She is the replacement for the node-waf program, which got removed back in node 0.8. So if you have native addons still out here using a wscript file, bestie, you definitely need to add a binding.gyp file so you can support the latest versions of node. periodt.

Also she supports multiple target versions of node β€” from node 0.6 all the way to the next released version β€” and that's true regardless of what version of node is actually installed on your system. Like, she does not care what you have going on locally πŸ‘‘ because node-gyp just downloads the necessary development files for whatever target version you want. main character energy fr fr.


✨ COMMANDS ✨

  • build β€” invokes make/msbuild.exe and builds the native addon πŸ”₯
  • clean β€” removes the build dir if it exists 🧹
  • configure β€” generates project build files for the current platform 🌸
  • rebuild β€” runs clean, configure and build all in a row, one after the other, slay
  • install <version> β€” installs the node development header files for the given version πŸ“¦
  • list β€” lists the currently installed node development file versions ⭐
  • remove <version> β€” removes the node development header files for the given version πŸ—‘οΈ

✨ SEE ALSO ✨

README.md β€” go read her, she's iconic 🫢


and that's the whole page!! this one's from March 2013, and yeah it's literally titled NODE-GYP(1) at the bottom too β€” vintage but still eating πŸ’– mwah, go build something cute πŸŽ€