You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
Maybe like gcp-build could exists a gcp-install or a ENV variable to add some configuration in the installation step
Describe alternatives you've considered
I'm open to any workaround to test it. If there are another env or some configuration that not affects to all the application infrastructure like move from App Engine to Cloud Run or Flex with custom docker image.
The text was updated successfully, but these errors were encountered:
I had a similar issue and solved it by creating a .npmrc file that listed all the additional arguments I wanted. You can also instead use env variables in your project.toml with the syntax NPM_CONFIG_*. The docs and supported arguments are here: https://docs.npmjs.com/cli/v10/using-npm/config
Is your feature request related to a problem? Please describe.
I'm trying to improve some build time and trying to add
--cache .npm --prefer-offline --no-audit
to the npm install script.Checking the code I didn't see how to do that: https://github.com/GoogleCloudPlatform/buildpacks/blob/main/cmd/nodejs/npm/main.go#L120
Describe the solution you'd like
Maybe like gcp-build could exists a gcp-install or a ENV variable to add some configuration in the installation step
Describe alternatives you've considered
I'm open to any workaround to test it. If there are another env or some configuration that not affects to all the application infrastructure like move from App Engine to Cloud Run or Flex with custom docker image.
The text was updated successfully, but these errors were encountered: