Situation
Within the company we've got our own NPM registry and the corporate network blocks the access to the public NPM registry.
Problem
To install cypress, we would like the binary to be downloaded from our own NPM registry by running following command:
export CYPRESS_INSTALL_BINARY=<Our NPM registry URL>
However it does not work if we add the above command into the preinstall hook. We believe it's because NPM runs each task in a separate process.
So my question is, how to export an environment variable for npm install to use in package.json?