jsii icon indicating copy to clipboard operation
jsii copied to clipboard

Remove dependence on global "node" executable

Open pauldraper opened this issue 2 years ago • 0 comments

Describe the feature

This project relies on a "node" executable on PATH, regardless of what node.js executable is used to run cdk.

https://github.com/aws/jsii/blob/main/packages/%40jsii/python-runtime/src/jsii/_kernel/providers/process.py#L251

Use Case

Node.js may not be installed globally. Or perhaps it is installed, but not named "node." E.g. node18, node19 similar to python2, python3.

Proposed Solution

Use an env var, like

NODE_RUNTIME=/usr/local/bin/node18

Other Information

No response

Acknowledgements

  • [ ] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

CDK version used

Environment details (OS name and version, etc.)

pauldraper avatar Aug 28 '22 14:08 pauldraper