We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be great if it was possible to set the NODE_ENV variable with this plugin. I tried like this but did not work:
task installNPM(type: NodeJsTask) { require = ["npm"] executable = "npm" args = ['NODE_ENV=production', 'install', '--no-save'] }
The text was updated successfully, but these errors were encountered:
I tried out another task that did not work:
task runSetup(type: NodeJsTask) { require = ["node"] executable = "node" args = ['NODE_ENV=production'] } task installNPM(type: NodeJsTask, dependsOn: [runSetup]) { require = ["npm"] executable = "npm" args = ['install', '--no-save'] }
Gives an error:
Execution failed for task: > Process 'command '/opt/.nodejs/10.15.0/bin/npm'' finished with non-zero exit value 1
Sorry, something went wrong.
No branches or pull requests
It would be great if it was possible to set the NODE_ENV variable with this plugin. I tried like this but did not work:
The text was updated successfully, but these errors were encountered: