Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to add cli options to npm install #387

Open
jlopezxs opened this issue Mar 12, 2024 · 1 comment
Open

Be able to add cli options to npm install #387

jlopezxs opened this issue Mar 12, 2024 · 1 comment
Labels
kind/enhancement New feature or request

Comments

@jlopezxs
Copy link

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.

@jlopezxs jlopezxs added the kind/enhancement New feature or request label Mar 12, 2024
@jama22
Copy link
Collaborator

jama22 commented Apr 25, 2024

Hey @jlopezxs , would GOOGLE_NODE_RUN_SCRIPTS help? https://cloud.google.com/docs/buildpacks/nodejs#using_google_node_run_scripts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants