What is node-gyp
Solution 1:
node-gyp
is a tool which compiles Node.js Addons. Node.js Addons are native Node.js Modules, written in C or C++, which therefore need to be compiled on your machine. After they are compiled with tools like node-gyp, their functionality can be accessed via require()
, just as any other Node.js Module.
If you do what you suggested the module won't work, you will need to compile it/build it with node-gyp on the system you moved the program to.
node-gyp
: https://github.com/nodejs/node-gyp
Node.js Addons: https://nodejs.org/api/addons.html