For a Node.js app, in order to use the node-argon2 package, the node-gyp package must be globally installed on the system first as well as a c/c++ compiler to build the Argon2 source. (I'm using Windows, but the production target instance is probably an Ubuntu instance) After which, the Argon2 hashing can be used.
When deploying to a platform like Google Cloud Platform, how would I fulfill this requirement? Do I need to create a script that runs the following commands,
npm i -g node-gyp
npm i node-argon2
or do I manage globally installed NPM packages somewhere else in this case?
Then, there is the matter of needing to compile it before being able to use it. Does this happen every time the app is deployed or just the first time?